Update view.jsx

This commit is contained in:
ksami 2019-10-07 23:00:44 +08:00 committed by Sean Yesmunt
parent 1149d76cd5
commit 3d51c9e5e2

View file

@ -15,7 +15,7 @@ type Props = {
export default function Tag(props: Props) {
const { name, onClick, type = 'link', disabled = false } = props;
const isMature = MATURE_TAGS.includes(name);
const clickProps = onClick ? { onClick } : { navigate: encodeURIComponent(`/$/tags?t=${name}`) };
const clickProps = onClick ? { onClick } : { navigate: `/$/tags?t=${encodeURIComponent(name)}` };
let title;
if (!onClick) {