This commit is contained in:
2025-07-04 00:54:19 +09:00
parent 405690a631
commit e2f9979748
3 changed files with 14 additions and 15 deletions
+8 -8
View File
@@ -99,14 +99,14 @@ export default ({ user }: Props) => {
{post.viewed ? '閲覧済' : '未閲覧'}
</Button>
<TabGroup>
{['admin', 'member'].some (r => r === user.role) && editing &&
<Tab name="編輯">
<PostEditForm post={post}
onSave={newPost => {
setPost (newPost)
toast ({ description: '更新しました.' })
}} />
</Tab>}
{(['admin', 'member'].some (r => r === user.role) && editing) && (
<Tab name="編輯">
<PostEditForm post={post}
onSave={newPost => {
setPost (newPost)
toast ({ description: '更新しました.' })
}} />
</Tab>)}
</TabGroup>
</>)
: 'Loading...'}