Skip to content

Commit 427e966

Browse files
committed
adding some updates based on Joe feedback
1 parent 779a773 commit 427e966

File tree

9 files changed

+27
-16
lines changed

9 files changed

+27
-16
lines changed

resources/js/components/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const footerNavItems: NavItem[] = [
3535

3636
export function AppSidebar() {
3737
return (
38-
<Sidebar variant="sidebar" collapsible="icon">
38+
<Sidebar collapsible="icon">
3939
<SidebarHeader>
4040
<SidebarMenu>
4141
<SidebarMenuItem>

resources/js/components/settings/heading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Heading({ title, description }: HeadingProps) {
99
return (
1010
<div>
1111
<header>
12-
<h3 className="text-lg font-medium">{title}</h3>
12+
<h3 className="text-lg font-medium mb-1">{title}</h3>
1313
{description && (
1414
<p className="text-sm text-muted-foreground">
1515
{description}

resources/js/layouts/app-layout.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ interface BreadcrumbItemType {
2222

2323
interface AppLayoutProps {
2424
children: React.ReactNode
25-
breadcrumbItems?: BreadcrumbItemType[]
25+
breadcrumbs?: BreadcrumbItemType[]
2626
}
2727

2828
export default function App({
2929
children,
30-
breadcrumbItems = [],
30+
breadcrumbs = [],
3131
}: AppLayoutProps) {
3232

3333
const [isOpen, setIsOpen] = useState(() =>
3434
typeof window !== 'undefined' ?
35-
localStorage.getItem('sidebar') === 'true' :
35+
localStorage.getItem('sidebar') !== 'false' :
3636
true
3737
);
3838

@@ -54,13 +54,13 @@ export default function App({
5454
<header className="flex h-16 shrink-0 items-center w-full justify-between gap-2 border-b px-4">
5555
<div className="flex items-center gap-2">
5656
<SidebarTrigger className="-ml-1" />
57-
{breadcrumbItems.length > 0 && (
57+
{breadcrumbs.length > 0 && (
5858
<>
5959
<Separator orientation="vertical" className="mr-2 h-4" />
6060
<Breadcrumb>
6161
<BreadcrumbList>
62-
{breadcrumbItems.map((item, index) => {
63-
const isLast = index === breadcrumbItems.length - 1;
62+
{breadcrumbs.map((item, index) => {
63+
const isLast = index === breadcrumbs.length - 1;
6464

6565
return (
6666
<Fragment key={index}>

resources/js/pages/auth/login.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default function Login({
6565
type="email"
6666
required
6767
autoFocus
68+
tabIndex={1}
6869
value={data.email}
6970
onChange={(e) => setData("email", e.target.value)}
7071
/>
@@ -78,6 +79,7 @@ export default function Login({
7879
<Link
7980
href={route("password.request")}
8081
className="ml-auto text-sm underline-offset-4 hover:underline"
82+
tabIndex={5}
8183
>
8284
Forgot your password?
8385
</Link>
@@ -87,6 +89,7 @@ export default function Login({
8789
id="password"
8890
type="password"
8991
required
92+
tabIndex={2}
9093
value={data.password}
9194
onChange={(e) => setData("password", e.target.value)}
9295
/>
@@ -96,6 +99,7 @@ export default function Login({
9699
<Button
97100
type="submit"
98101
className="w-full"
102+
tabIndex={3}
99103
disabled={processing}
100104
>
101105
{processing && (
@@ -112,6 +116,7 @@ export default function Login({
112116
<Link
113117
href={route("register")}
114118
className="underline underline-offset-4"
119+
tabIndex={4}
115120
>
116121
Sign up
117122
</Link>

resources/js/pages/auth/register.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default function Register() {
5252
type="text"
5353
required
5454
autoFocus
55+
tabIndex={1}
5556
value={data.name}
5657
onChange={(e) => setData("name", e.target.value)}
5758
disabled={processing}
@@ -65,6 +66,7 @@ export default function Register() {
6566
id="email"
6667
type="email"
6768
required
69+
tabIndex={2}
6870
value={data.email}
6971
onChange={(e) => setData("email", e.target.value)}
7072
disabled={processing}
@@ -78,6 +80,7 @@ export default function Register() {
7880
id="password"
7981
type="password"
8082
required
83+
tabIndex={3}
8184
value={data.password}
8285
onChange={(e) => setData("password", e.target.value)}
8386
disabled={processing}
@@ -93,6 +96,7 @@ export default function Register() {
9396
id="password_confirmation"
9497
type="password"
9598
required
99+
tabIndex={4}
96100
value={data.password_confirmation}
97101
onChange={(e) => setData("password_confirmation", e.target.value)}
98102
disabled={processing}
@@ -103,6 +107,7 @@ export default function Register() {
103107
<Button
104108
type="submit"
105109
className="w-full"
110+
tabIndex={5}
106111
disabled={processing}
107112
>
108113
{processing && (
@@ -119,6 +124,7 @@ export default function Register() {
119124
<Link
120125
href={route("login")}
121126
className="underline underline-offset-4"
127+
tabIndex={6}
122128
>
123129
Log in
124130
</Link>

resources/js/pages/dashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface BreadcrumbItem {
66
href: string
77
}
88

9-
const breadcrumbItems: BreadcrumbItem[] = [
9+
const breadcrumbs: BreadcrumbItem[] = [
1010
{
1111
title: 'Dashboard',
1212
href: '/dashboard'
@@ -15,7 +15,7 @@ const breadcrumbItems: BreadcrumbItem[] = [
1515

1616
export default function Dashboard() {
1717
return (
18-
<AppLayout breadcrumbItems={breadcrumbItems}>
18+
<AppLayout breadcrumbs={breadcrumbs}>
1919
<Head title="Dashboard" />
2020
<div className="flex flex-1 flex-col gap-4 p-4">
2121
<div className="grid auto-rows-min gap-4 md:grid-cols-3">

resources/js/pages/settings/appearance.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface BreadcrumbItem {
1313
href: string
1414
}
1515

16-
const breadcrumbItems: BreadcrumbItem[] = [
16+
const breadcrumbs: BreadcrumbItem[] = [
1717
{
1818
title: 'Appearance Settings',
1919
href: '/settings/appearance'
@@ -24,7 +24,7 @@ export default function Appearance() {
2424

2525
return (
2626
<AppLayout
27-
breadcrumbItems={breadcrumbItems}
27+
breadcrumbs={breadcrumbs}
2828
>
2929
<Head title="Appearance Settings" />
3030

resources/js/pages/settings/password.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Input } from "@/components/ui/input";
1010
import { Label } from "@/components/ui/label";
1111
import SettingsHeading from "@/components/settings/heading";
1212

13-
const breadcrumbItems = [
13+
const breadcrumbs = [
1414
{
1515
title: 'Password Settings',
1616
href: '/settings/password'
@@ -63,7 +63,7 @@ export default function Password({
6363

6464
return (
6565
<AppLayout
66-
breadcrumbItems={breadcrumbItems}
66+
breadcrumbs={breadcrumbs}
6767
>
6868
<Head title="Profile Settings" />
6969

resources/js/pages/settings/profile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface BreadcrumbItem {
1919
href: string
2020
}
2121

22-
const breadcrumbItems: BreadcrumbItem[] = [
22+
const breadcrumbs: BreadcrumbItem[] = [
2323
{
2424
title: 'Profile Settings',
2525
href: '/settings/profile'
@@ -52,7 +52,7 @@ export default function Profile({
5252

5353
return (
5454
<AppLayout
55-
breadcrumbItems={breadcrumbItems}
55+
breadcrumbs={breadcrumbs}
5656
>
5757
<Head title="Profile Settings" />
5858

0 commit comments

Comments
 (0)