File tree 18 files changed +47
-55
lines changed
18 files changed +47
-55
lines changed Original file line number Diff line number Diff line change 1
- import Sidebar from "@/components/layout/Sidebar.tsx" ;
2
1
import OfflineNotification from "@/components/layout/Offline.tsx" ;
2
+ import Sidebar from "@/components/layout/Sidebar.tsx" ;
3
3
import {
4
4
createRootRouteWithContext ,
5
5
Link ,
@@ -43,13 +43,11 @@ export const Route = createRootRouteWithContext<RouterContext>()({
43
43
notFoundComponent : ( ) => (
44
44
< div className = "flex h-full flex-row" >
45
45
< Sidebar >
46
- < div className = "flex h-full flex-grow flex-col" >
47
- < div className = "flex h-full flex-col justify-center text-center @container/content" >
48
- < h1 className = "mb-4 text-4xl font-bold" > 404 / not found</ h1 >
49
- < Link to = "/" className = "selected" >
50
- Go to dashboard
51
- </ Link >
52
- </ div >
46
+ < div className = "flex min-h-full grow flex-col items-center justify-center overflow-y-auto @container/content" >
47
+ < h1 className = "mb-4 text-4xl font-bold" > 404 / not found</ h1 >
48
+ < Link to = "/dashboard" className = "selected" >
49
+ Go to dashboard
50
+ </ Link >
53
51
</ div >
54
52
</ Sidebar >
55
53
</ div >
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { createFileRoute, Outlet } from "@tanstack/react-router";
3
3
4
4
export const Route = createFileRoute ( "/_with_menu/account" ) ( {
5
5
component : ( ) => (
6
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
6
+ < >
7
7
< Topbar title = "My account" />
8
8
< Outlet />
9
- </ div >
9
+ </ >
10
10
) ,
11
11
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/dashboard" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Dashboard</ title >
11
11
< meta
@@ -16,6 +16,6 @@ export const Route = createFileRoute("/_with_menu/dashboard")({
16
16
17
17
< Topbar title = "Dashboard" />
18
18
< DashboardPage />
19
- </ div >
19
+ </ >
20
20
) ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/dorms" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Dorms</ title >
11
11
< meta
@@ -16,6 +16,6 @@ export const Route = createFileRoute("/_with_menu/dorms")({
16
16
17
17
< Topbar title = "Dorms" />
18
18
< DormsPage />
19
- </ div >
19
+ </ >
20
20
) ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/extension" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Browser extension</ title >
11
11
< meta
@@ -16,6 +16,6 @@ export const Route = createFileRoute("/_with_menu/extension")({
16
16
17
17
< Topbar title = "Browser extension" />
18
18
< ExtensionPage />
19
- </ div >
19
+ </ >
20
20
) ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const Route = createFileRoute("/_with_menu/maps")({
17
17
component : function RouteComponent ( ) {
18
18
const { sceneId, q } = Route . useSearch ( ) ;
19
19
return (
20
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
20
+ < >
21
21
< Helmet >
22
22
< title > Maps</ title >
23
23
< meta
@@ -29,7 +29,7 @@ export const Route = createFileRoute("/_with_menu/maps")({
29
29
< Topbar title = "Maps" />
30
30
< MapsPageTabs />
31
31
< MapsPage sceneId = { sceneId } q = { q } />
32
- </ div >
32
+ </ >
33
33
) ;
34
34
} ,
35
35
} ) ;
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/music-room/" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Music room</ title >
11
11
< meta name = "description" content = "Book the Music room in Innopolis." />
12
12
</ Helmet >
13
13
14
14
< Topbar title = "Music room" />
15
15
< MusicRoomPage />
16
- </ div >
16
+ </ >
17
17
) ,
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/music-room/instructions" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Music room</ title >
11
11
< meta name = "description" content = "Book the Music room in Innopolis." />
12
12
</ Helmet >
13
13
14
14
< Topbar title = "Music room" />
15
15
< MusicRoomInstructions />
16
- </ div >
16
+ </ >
17
17
) ,
18
18
} ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Helmet } from "react-helmet-async";
6
6
7
7
export const Route = createFileRoute ( "/_with_menu/room-booking/" ) ( {
8
8
component : ( ) => (
9
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
9
+ < >
10
10
< Helmet >
11
11
< title > Room booking</ title >
12
12
< meta
@@ -18,6 +18,6 @@ export const Route = createFileRoute("/_with_menu/room-booking/")({
18
18
< Topbar title = "Room booking" />
19
19
< BookingPageTabs />
20
20
< RoomBookingPage />
21
- </ div >
21
+ </ >
22
22
) ,
23
23
} ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Helmet } from "react-helmet-async";
6
6
7
7
export const Route = createFileRoute ( "/_with_menu/room-booking/list" ) ( {
8
8
component : ( ) => (
9
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
9
+ < >
10
10
< Helmet >
11
11
< title > Room booking</ title >
12
12
< meta
@@ -18,6 +18,6 @@ export const Route = createFileRoute("/_with_menu/room-booking/list")({
18
18
< Topbar title = "Room booking" />
19
19
< BookingPageTabs />
20
20
< BookingsListPage />
21
- </ div >
21
+ </ >
22
22
) ,
23
23
} ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { Helmet } from "react-helmet-async";
6
6
7
7
export const Route = createFileRoute ( "/_with_menu/room-booking/rules" ) ( {
8
8
component : ( ) => (
9
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
9
+ < >
10
10
< Helmet >
11
11
< title > Room booking</ title >
12
12
< meta
@@ -18,6 +18,6 @@ export const Route = createFileRoute("/_with_menu/room-booking/rules")({
18
18
< Topbar title = "Room booking" />
19
19
< BookingPageTabs />
20
20
< RoomBookingRules />
21
- </ div >
21
+ </ >
22
22
) ,
23
23
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const Route = createFileRoute("/_with_menu")({
5
5
component : ( ) => (
6
6
< div className = "flex h-full flex-row" >
7
7
< Sidebar >
8
- < div className = "flex h-full flex- grow flex-col" >
8
+ < div className = "flex min- h-full grow flex-col overflow-y-auto @container/content " >
9
9
< Outlet />
10
10
</ div >
11
11
</ Sidebar >
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ export const Route = createFileRoute("/_with_menu/schedule/$category")({
14
14
}
15
15
16
16
return (
17
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
17
+ < >
18
18
< Helmet >
19
19
< title > { categoryInfo . title } — Schedule</ title >
20
20
< meta name = "description" content = { categoryInfo . shortDescription } />
21
21
</ Helmet >
22
22
23
23
< Topbar title = { `Schedule — ${ categoryInfo . title } ` } />
24
24
< ScheduleList category = { category } />
25
- </ div >
25
+ </ >
26
26
) ;
27
27
} ,
28
28
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/schedule/" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Schedule</ title >
11
11
< meta
@@ -18,6 +18,6 @@ export const Route = createFileRoute("/_with_menu/schedule/")({
18
18
</ Helmet >
19
19
< Topbar title = "Schedule" />
20
20
< ScheduleMainPage />
21
- </ div >
21
+ </ >
22
22
) ,
23
23
} ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/scholarship" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Scholarship calculator</ title >
11
11
< meta
@@ -19,6 +19,6 @@ export const Route = createFileRoute("/_with_menu/scholarship")({
19
19
20
20
< Topbar title = "Scholarship" />
21
21
< ScholarshipPage />
22
- </ div >
22
+ </ >
23
23
) ,
24
24
} ) ;
Original file line number Diff line number Diff line change @@ -20,18 +20,16 @@ export const Route = createFileRoute("/_with_menu/search")({
20
20
const { q } = Route . useSearch ( ) ;
21
21
return (
22
22
< Suspense >
23
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
24
- < Helmet >
25
- < title > Search</ title >
26
- < meta
27
- name = "description"
28
- content = "Search anything at Innopolis University."
29
- />
30
- </ Helmet >
23
+ < Helmet >
24
+ < title > Search</ title >
25
+ < meta
26
+ name = "description"
27
+ content = "Search anything at Innopolis University."
28
+ />
29
+ </ Helmet >
31
30
32
- < Topbar title = "Search" />
33
- < SearchPage searchQuery = { q } />
34
- </ div >
31
+ < Topbar title = "Search" />
32
+ < SearchPage searchQuery = { q } />
35
33
</ Suspense >
36
34
) ;
37
35
} ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Helmet } from "react-helmet-async";
5
5
6
6
export const Route = createFileRoute ( "/_with_menu/sport" ) ( {
7
7
component : ( ) => (
8
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
8
+ < >
9
9
< Helmet >
10
10
< title > Sport bot</ title >
11
11
< meta
@@ -16,6 +16,6 @@ export const Route = createFileRoute("/_with_menu/sport")({
16
16
17
17
< Topbar title = "Sport" />
18
18
< SportPage />
19
- </ div >
19
+ </ >
20
20
) ,
21
21
} ) ;
Original file line number Diff line number Diff line change @@ -18,15 +18,11 @@ export function EventGroupPage({ alias }: { alias: string }) {
18
18
const [ exportModalOpen , setExportModalOpen ] = useState ( false ) ;
19
19
20
20
if ( ! group ) {
21
- return (
22
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
23
- < Topbar title = "Group" />
24
- </ div >
25
- ) ;
21
+ return < Topbar title = "Group" /> ;
26
22
}
27
23
28
24
return (
29
- < div className = "flex min-h-full flex-col overflow-y-auto @container/content" >
25
+ < >
30
26
< Helmet >
31
27
< title > { group . name } group — Schedule</ title >
32
28
< meta name = "description" content = { group . description ?? undefined } />
@@ -87,6 +83,6 @@ export function EventGroupPage({ alias }: { alias: string }) {
87
83
open = { exportModalOpen }
88
84
onOpenChange = { setExportModalOpen }
89
85
/>
90
- </ div >
86
+ </ >
91
87
) ;
92
88
}
You can’t perform that action at this time.
0 commit comments