mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-21 22:34: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
|
||||
}
|
||||
|
||||
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 (
|
||||
<ListUnordered.Item bluelibClassNames={index === 0 ? "color-blue" : ""} key={id}>
|
||||
<ListUnordered.Item bluelibClassNames={id === authorization?.state.user?.id ? "color-magenta" : ""} key={id}>
|
||||
{username}
|
||||
</ListUnordered.Item>
|
||||
)
|
||||
|
|
|
@ -35,7 +35,7 @@ export function NotebookDescriptionBox(): JSX.Element | null {
|
|||
}
|
||||
|
||||
return (
|
||||
<Box builtinColor={locked_by ? "blue" : undefined}>
|
||||
<Box builtinColor={locked_by ? "magenta" : undefined}>
|
||||
<Heading level={3}>
|
||||
<FontAwesomeIcon icon={faBook}/> About <I>{notebook.value.name}</I>
|
||||
</Heading>
|
||||
|
|
|
@ -24,7 +24,7 @@ export function NotebookResourcePanel({resource}: NotebookResourcePanelProps): J
|
|||
const locked_by = cache?.getUserById(resource.value.locked_by)?.value.username
|
||||
|
||||
return (
|
||||
<ResourcePanel builtinColor={locked_by ? "blue" : undefined}>
|
||||
<ResourcePanel builtinColor={locked_by ? "magenta" : undefined}>
|
||||
<ResourcePanel.Icon>
|
||||
<FontAwesomeIcon icon={faBook}/>
|
||||
</ResourcePanel.Icon>
|
||||
|
|
Loading…
Reference in a new issue