mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-01 10:39:21 -05:00
Switch to BiomeJS (#306)
This commit is contained in:
@@ -50,7 +50,7 @@ export function WorkspaceEncryptionSetting({ size, expanded, onDone, onEnabledEn
|
||||
setKey({ key: null, error: `${err}` });
|
||||
},
|
||||
);
|
||||
}, [setKey, workspaceMeta, workspaceMeta?.encryptionKey]);
|
||||
}, [workspaceMeta, workspaceMeta?.encryptionKey]);
|
||||
|
||||
if (key == null || workspace == null || workspaceMeta == null) {
|
||||
return null;
|
||||
@@ -117,7 +117,7 @@ export function WorkspaceEncryptionSetting({ size, expanded, onDone, onEnabledEn
|
||||
await enableEncryption(workspaceMeta.workspaceId);
|
||||
setJustEnabledEncryption(true);
|
||||
} catch (err) {
|
||||
setError('Failed to enable encryption: ' + err);
|
||||
setError(`Failed to enable encryption: ${err}`);
|
||||
}
|
||||
}}
|
||||
>
|
||||
@@ -242,10 +242,11 @@ function HighlightedKey({ keyText, show }: { keyText: string; show: boolean }) {
|
||||
keyText.split('').map((c, i) => {
|
||||
return (
|
||||
<span
|
||||
// biome-ignore lint/suspicious/noArrayIndexKey: it's fine
|
||||
key={i}
|
||||
className={classNames(
|
||||
c.match(/[0-9]/) && 'text-info',
|
||||
c == '-' && 'text-text-subtle',
|
||||
c === '-' && 'text-text-subtle',
|
||||
)}
|
||||
>
|
||||
{c}
|
||||
|
||||
Reference in New Issue
Block a user