diff --git a/app/routes/_data.acls._index/editor.tsx b/app/routes/_data.acls._index/editor.tsx index b93f18a..f1e5451 100644 --- a/app/routes/_data.acls._index/editor.tsx +++ b/app/routes/_data.acls._index/editor.tsx @@ -13,16 +13,16 @@ import { toast } from '~/components/Toaster' import Fallback from './fallback' -type EditorProperties = { - readonly acl: string; - readonly setAcl: (acl: string) => void; - readonly mode: 'edit' | 'diff'; +interface EditorProperties { + readonly acl: string + readonly setAcl: (acl: string) => void + readonly mode: 'edit' | 'diff' readonly data: { - hasAclWrite: boolean; - currentAcl: string; - aclType: string; - }; + hasAclWrite: boolean + currentAcl: string + aclType: string + } } export default function Editor({ data, acl, setAcl, mode }: EditorProperties) { @@ -36,7 +36,7 @@ export default function Editor({ data, acl, setAcl, mode }: EditorProperties) { const theme = window.matchMedia('(prefers-color-scheme: light)') setLight(theme.matches) - theme.addEventListener('change', theme => { + theme.addEventListener('change', (theme) => { setLight(theme.matches) }) @@ -48,66 +48,75 @@ export default function Editor({ data, acl, setAcl, mode }: EditorProperties) { <>