This commit is contained in:
@@ -64,7 +64,7 @@ export default ({ posts }: Props) => {
|
||||
</li>))) : [])}
|
||||
</ul>
|
||||
<SectionTitle>関聯</SectionTitle>
|
||||
{posts.length && (
|
||||
{posts.length > 0 && (
|
||||
<a href="#"
|
||||
onClick={ev => {
|
||||
ev.preventDefault ()
|
||||
|
||||
@@ -166,8 +166,7 @@ export default ({ user }: Props) => {
|
||||
return (
|
||||
<div className={className}>
|
||||
<Link to="/posts" className={subClass}>一覧</Link>
|
||||
{['admin', 'member'].some (r => user?.role === r) && (
|
||||
<Link to="/posts/new" className={subClass}>投稿追加</Link>)}
|
||||
<Link to="/posts/new" className={subClass}>投稿追加</Link>
|
||||
<Link to="/wiki/ヘルプ:広場" className={subClass}>ヘルプ</Link>
|
||||
</div>)
|
||||
case Menu.Tag:
|
||||
|
||||
@@ -4,6 +4,6 @@ type Props = { children: React.ReactNode }
|
||||
|
||||
|
||||
export default ({ children }: Props) => (
|
||||
<div className="w-64 bg-gray-100 p-4 border-r border-gray-200 h-full">
|
||||
<div className="p-4 w-full md:w-64 md:h-full">
|
||||
{children}
|
||||
</div>)
|
||||
|
||||
Reference in New Issue
Block a user