mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🐛 Fix #101
This commit is contained in:
parent
e0d5990fd3
commit
09f4ba304b
3 changed files with 4 additions and 4 deletions
|
@ -31,10 +31,10 @@ export function GroupMembersBox(): JSX.Element | null {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
const username = id === authorization?.state.user?.id ? <UAnnotation>{user.value.username}</UAnnotation> : user.value.username
|
const username = index === 0 ? <UAnnotation>{user.value.username}</UAnnotation> : user.value.username
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ListUnordered.Item bluelibClassNames={index === 0 ? "color-blue" : ""} key={id}>
|
<ListUnordered.Item bluelibClassNames={id === authorization?.state.user?.id ? "color-magenta" : ""} key={id}>
|
||||||
{username}
|
{username}
|
||||||
</ListUnordered.Item>
|
</ListUnordered.Item>
|
||||||
)
|
)
|
||||||
|
|
|
@ -35,7 +35,7 @@ export function NotebookDescriptionBox(): JSX.Element | null {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box builtinColor={locked_by ? "blue" : undefined}>
|
<Box builtinColor={locked_by ? "magenta" : undefined}>
|
||||||
<Heading level={3}>
|
<Heading level={3}>
|
||||||
<FontAwesomeIcon icon={faBook}/> About <I>{notebook.value.name}</I>
|
<FontAwesomeIcon icon={faBook}/> About <I>{notebook.value.name}</I>
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
|
@ -24,7 +24,7 @@ export function NotebookResourcePanel({resource}: NotebookResourcePanelProps): J
|
||||||
const locked_by = cache?.getUserById(resource.value.locked_by)?.value.username
|
const locked_by = cache?.getUserById(resource.value.locked_by)?.value.username
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ResourcePanel builtinColor={locked_by ? "blue" : undefined}>
|
<ResourcePanel builtinColor={locked_by ? "magenta" : undefined}>
|
||||||
<ResourcePanel.Icon>
|
<ResourcePanel.Icon>
|
||||||
<FontAwesomeIcon icon={faBook}/>
|
<FontAwesomeIcon icon={faBook}/>
|
||||||
</ResourcePanel.Icon>
|
</ResourcePanel.Icon>
|
||||||
|
|
Loading…
Reference in a new issue