diff --git a/app/routes.ts b/app/routes.ts index cd45e65..d5f7666 100644 --- a/app/routes.ts +++ b/app/routes.ts @@ -28,8 +28,8 @@ export default [ ...prefix('/settings', [ index('routes/settings/overview.tsx'), - route('/auth-keys', 'routes/settings/auth-keys.tsx'), - route('/restrictions', 'routes/settings/pages/restrictions.tsx'), + route('/auth-keys', 'routes/settings/auth-keys/overview.tsx'), + route('/restrictions', 'routes/settings/restrictions/overview.tsx'), // route('/local-agent', 'routes/settings/local-agent.tsx'), ]), ]), diff --git a/app/routes/settings/auth-keys/actions.ts b/app/routes/settings/auth-keys/actions.ts new file mode 100644 index 0000000..e69de29 diff --git a/app/routes/settings/components/key.tsx b/app/routes/settings/auth-keys/auth-key-row.tsx similarity index 94% rename from app/routes/settings/components/key.tsx rename to app/routes/settings/auth-keys/auth-key-row.tsx index 73a8ed5..2cf073c 100644 --- a/app/routes/settings/components/key.tsx +++ b/app/routes/settings/auth-keys/auth-key-row.tsx @@ -4,7 +4,7 @@ import Attribute from '~/components/Attribute'; import Button from '~/components/Button'; import Code from '~/components/Code'; import toast from '~/utils/toast'; -import ExpireKey from '../dialogs/expire'; +import ExpireAuthKey from './dialogs/expire-auth-key'; interface Props { authKey: PreAuthKey; @@ -37,7 +37,7 @@ export default function AuthKeyRow({ authKey, server }: Props) {
{(authKey.used && !authKey.reusable) || new Date(authKey.expiration) < new Date() ? undefined : ( - + )}