Skip to content

Commit 6a2f7f6

Browse files
committed
added app name to sidebar
1 parent b4b3778 commit 6a2f7f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/js/components/app-logo.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import AppLogoIcon from './app-logo-icon';
22

3+
const appName = import.meta.env.VITE_APP_NAME || 'Laravel';
4+
35
export default function AppLogo() {
46
return (
57
<>
68
<div className="flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground">
79
<AppLogoIcon className="size-5 fill-current text-white dark:text-black" />
810
</div>
911
<div className="ml-1 grid flex-1 text-left text-sm">
10-
<span className="mb-0.5 truncate leading-tight font-semibold">Laravel Starter Kit</span>
12+
<span className="mb-0.5 truncate leading-tight font-semibold">{appName}</span>
1113
</div>
1214
</>
1315
);

0 commit comments

Comments
 (0)