This commit is contained in:
ct
2025-07-15 03:27:39 +08:00
parent eb207b98d9
commit 852346ee3b
13 changed files with 44 additions and 61 deletions

View File

@@ -1,8 +1,8 @@
import { type SharedData } from '@/types';
import { Head, Link, usePage } from '@inertiajs/react';
import { Head, Link } from '@inertiajs/react';
import useUserStore from '@/stores/UserStore';
export default function Welcome() {
const { auth } = usePage<SharedData>().props;
const { user } = useUserStore();
return (
<>
@@ -13,7 +13,7 @@ export default function Welcome() {
<div className="flex min-h-screen flex-col items-center bg-[#FDFDFC] p-6 text-[#1b1b18] lg:justify-center lg:p-8 dark:bg-[#0a0a0a]">
<header className="mb-6 w-full max-w-[335px] text-sm not-has-[nav]:hidden lg:max-w-4xl">
<nav className="flex items-center justify-end gap-4">
{auth.user ? (
{user ? (
<Link
href={route(config('platform.general.authed_route_redirect'))}
className="inline-block rounded-sm border border-[#19140035] px-5 py-1.5 text-sm leading-normal text-[#1b1b18] hover:border-[#1915014a] dark:border-[#3E3E3A] dark:text-[#EDEDEC] dark:hover:border-[#62605b]"