Skip to content

Commit 29baadf

Browse files
committed
refactor: move hostels page inside institute
1 parent 18da860 commit 29baadf

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

app/[locale]/header.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ export default async function Header({ locale }: { locale: string }) {
5555
description:
5656
'Discover the state-of-the-art facilities and infrastructure on campus.',
5757
},
58+
{
59+
title: 'Hostels',
60+
href: '/institute/hostels',
61+
description:
62+
'Information about on-campus accommodation and hostel facilities.',
63+
},
5864
],
5965
},
6066
{

app/[locale]/hostels/page.tsx renamed to app/[locale]/institute/hostels/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
'use server';
2+
import Image from 'next/image';
23
import Link from 'next/link';
34
import { Suspense } from 'react';
4-
import Image from 'next/image';
55
import { MdBadge } from 'react-icons/md';
66

7-
import { cn, groupBy } from '~/lib/utils';
8-
import { getS3Url } from '~/server/s3';
7+
import { Button } from '~/components/buttons';
98
import Heading from '~/components/heading';
109
import ImageHeader from '~/components/image-header';
11-
import { getTranslations } from '~/i18n/translations';
10+
import Loading from '~/components/loading';
1211
import { Card, ScrollArea } from '~/components/ui';
12+
import { getTranslations } from '~/i18n/translations';
13+
import { cn, groupBy } from '~/lib/utils';
1314
import { db } from '~/server/db';
14-
import { Button } from '~/components/buttons';
15-
import Loading from '~/components/loading';
15+
import { getS3Url } from '~/server/s3';
1616

17-
import { NotificationsList } from '../notifications';
17+
import { NotificationsList } from '../../notifications';
1818

1919
export default async function Hostels({
2020
params: { locale },

0 commit comments

Comments
 (0)