diff --git a/package-lock.json b/package-lock.json index 7aad0dd..51791b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,6 +32,7 @@ "@iconify-icon/react": "^3.0.1", "@iconify-json/material-symbols": "^1.2.42", "@iconify-json/mdi": "^1.2.3", + "@iconify/json": "^2.2.396", "@svgr/core": "^8.1.0", "@svgr/plugin-jsx": "^8.1.0", "@testing-library/dom": "^10.4.0", @@ -1683,6 +1684,17 @@ "@iconify/types": "*" } }, + "node_modules/@iconify/json": { + "version": "2.2.396", + "resolved": "https://registry.npmjs.org/@iconify/json/-/json-2.2.396.tgz", + "integrity": "sha512-tijg77JFuYIt32S9N8p7La8C0zp9zKZsX6UP8ip5GVB1F6Mp3pZA5Vc5eAquTY50NoDJX58U6z4Qn3d6Wyossg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@iconify/types": "*", + "pathe": "^2.0.0" + } + }, "node_modules/@iconify/types": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", diff --git a/package.json b/package.json index 982fb4e..6e4b60d 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "@iconify-icon/react": "^3.0.1", "@iconify-json/material-symbols": "^1.2.42", "@iconify-json/mdi": "^1.2.3", + "@iconify/json": "^2.2.396", "@svgr/core": "^8.1.0", "@svgr/plugin-jsx": "^8.1.0", "@testing-library/dom": "^10.4.0", diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 4c73c32..e7dbda9 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -8,6 +8,7 @@ export {} declare global { const IconMaterialSymbolsAccountCircle: typeof import('~icons/material-symbols/account-circle.jsx').default const IconMaterialSymbolsAccountCircleOutline: typeof import('~icons/material-symbols/account-circle-outline.jsx').default + const IconMaterialSymbolsArrowBack: typeof import('~icons/material-symbols/arrow-back.jsx').default const IconMaterialSymbolsHome: typeof import('~icons/material-symbols/home.jsx').default const IconMaterialSymbolsHomeOutline: typeof import('~icons/material-symbols/home-outline.jsx').default const IconMaterialSymbolsNotifications: typeof import('~icons/material-symbols/notifications.jsx').default diff --git a/src/components/Header.tsx b/src/components/Header.tsx new file mode 100644 index 0000000..ad24a94 --- /dev/null +++ b/src/components/Header.tsx @@ -0,0 +1,29 @@ +import { Link, useRouter } from "@tanstack/react-router"; + +export function Header({ + backButtonCallback, + title +}: { + backButtonCallback?: () => void; + title?: string; +}) { + const router = useRouter(); + //const what = router.history. + return ( +
You are logged in!
@@ -41,7 +48,7 @@ export default function Login({ compact = false }: { compact?: boolean }) {