-
+
{user?.name || user?.display_name || user?.displayName}
-
-
+
+
{user?.nip05 || displayNpub(db.account.pubkey, 12)}
-
+
diff --git a/src/shared/frame.tsx b/src/shared/frame.tsx
deleted file mode 100644
index cfa254ca..00000000
--- a/src/shared/frame.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-import { HTMLProps, ReactNode, useCallback } from 'react';
-import { twMerge } from 'tailwind-merge';
-
-import { useStorage } from '@libs/storage/provider';
-
-export function Frame({
- children,
- className,
- lighter,
-}: {
- children: ReactNode;
- className: HTMLProps
['className'];
- lighter?: boolean;
-}) {
- const { db } = useStorage();
-
- const platformStyles = useCallback(() => {
- switch (db.platform) {
- case 'darwin':
- if (lighter) return 'bg-black/80';
- return 'bg-black/90';
- default:
- return 'bg-black';
- }
- }, []);
-
- return {children}
;
-}
diff --git a/src/shared/layouts/app.tsx b/src/shared/layouts/app.tsx
index bb0bff26..32db40e9 100644
--- a/src/shared/layouts/app.tsx
+++ b/src/shared/layouts/app.tsx
@@ -1,6 +1,5 @@
import { Outlet, ScrollRestoration } from 'react-router-dom';
-import { Frame } from '@shared/frame';
import { Navigation } from '@shared/navigation';
export function AppLayout() {
@@ -9,14 +8,14 @@ export function AppLayout() {
-
+
{
return location.pathname;
}}
/>
-
+
);
}
diff --git a/src/shared/layouts/auth.tsx b/src/shared/layouts/auth.tsx
index c3854207..d1bb375b 100644
--- a/src/shared/layouts/auth.tsx
+++ b/src/shared/layouts/auth.tsx
@@ -1,12 +1,10 @@
import { Outlet } from 'react-router-dom';
-import { Frame } from '@shared/frame';
-
export function AuthLayout() {
return (
-