1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-10-16 07:07:26 +00:00
This commit is contained in:
Steffo 2021-12-09 18:18:08 +01:00
parent e0d5990fd3
commit 09f4ba304b
Signed by: steffo
GPG key ID: 6965406171929D01
3 changed files with 4 additions and 4 deletions

View file

@ -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>
)

View file

@ -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}/>&nbsp;About <I>{notebook.value.name}</I>
</Heading>

View file

@ -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>