This commit is contained in:
@@ -166,7 +166,8 @@ export default ({ user }: Props) => {
|
||||
return (
|
||||
<div className={className}>
|
||||
<Link to="/posts" className={subClass}>一覧</Link>
|
||||
<Link to="/posts/new" className={subClass}>投稿追加</Link>
|
||||
{['admin', 'member'].some (r => user?.role === r) && (
|
||||
<Link to="/posts/new" className={subClass}>投稿追加</Link>)}
|
||||
<Link to="/wiki/ヘルプ:広場" className={subClass}>ヘルプ</Link>
|
||||
</div>)
|
||||
case Menu.Tag:
|
||||
|
||||
@@ -6,7 +6,7 @@ import * as React from "react"
|
||||
import type {
|
||||
ToastActionElement,
|
||||
ToastProps,
|
||||
} from "@/registry/default/ui/toast"
|
||||
} from "./toast"
|
||||
|
||||
const TOAST_LIMIT = 1
|
||||
const TOAST_REMOVE_DELAY = 1000000
|
||||
|
||||
Reference in New Issue
Block a user