format code
This commit is contained in:
2 files changed
+13
-3
No files matched your search
@@ -461,7 +461,6 @@ export function Cosmetics({ requestClose }: CosmeticsProps) {
|
||||
variant="SurfaceVariant"
|
||||
direction="Column"
|
||||
gap="400"
|
||||
style={{ opacity: canHaveRoomColor || canEditPermissions ? 1 : 0.5 }}
|
||||
>
|
||||
<NameColorEditor
|
||||
title={isSpace ? 'Space Name Color' : 'Room Name Color'}
|
||||
@@ -499,7 +498,12 @@ export function Cosmetics({ requestClose }: CosmeticsProps) {
|
||||
direction="Column"
|
||||
gap="400"
|
||||
>
|
||||
<CosmeticsFont room={room} isSpace={isSpace} font={roomProfile.resolvedFont} disabled={!(canHaveRoomFont || canEditPermissions)} />
|
||||
<CosmeticsFont
|
||||
room={room}
|
||||
isSpace={isSpace}
|
||||
font={roomProfile.resolvedFont}
|
||||
disabled={!(canHaveRoomFont || canEditPermissions)}
|
||||
/>
|
||||
</SequenceCard>
|
||||
</Box>
|
||||
<Box direction="Column" gap="100">
|
||||
|
||||
@@ -12,7 +12,13 @@ type NameColorEditorProps = {
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
export function NameColorEditor({ title, description, current, onSave, disabled }: NameColorEditorProps) {
|
||||
export function NameColorEditor({
|
||||
title,
|
||||
description,
|
||||
current,
|
||||
onSave,
|
||||
disabled,
|
||||
}: NameColorEditorProps) {
|
||||
const stripQuotes = (str?: string) => {
|
||||
if (!str) return '';
|
||||
// to solve the silly tuwunel
|
||||
|
||||
Reference in new issue
Block a user