Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Sep 26, 2024
1 parent 164decd commit 564e39a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
35 changes: 22 additions & 13 deletions frontend/src/components/pages/home/RoomGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
import React, { useEffect, useState } from "react";
import { Grid, Box, Text } from '@chakra-ui/react';
import { Grid, Box, Text } from "@chakra-ui/react";

const rooms = [
{ id: 1, name: 'Room 1', info: 'Info about Room 1' },
{ id: 2, name: 'Room 2', info: 'Info about Room 2' },
{ id: 3, name: 'Room 3', info: 'Info about Room 3' },
{ id: 4, name: 'Room 4', info: 'Info about Room 4' },
{ id: 5, name: 'Room 5', info: 'Info about Room 5' },
{ id: 6, name: 'Room 6', info: 'Info about Room 6' },
{ id: 7, name: 'Room 7', info: 'Info about Room 7' },
{ id: 8, name: 'Room 8', info: 'Info about Room 8' },
{ id: 9, name: 'Room 9', info: 'Info about Room 9' },
{ id: 10, name: 'Room 10', info: 'Info about Room 10' },
{ id: 1, name: "Room 1", info: "Info about Room 1" },
{ id: 2, name: "Room 2", info: "Info about Room 2" },
{ id: 3, name: "Room 3", info: "Info about Room 3" },
{ id: 4, name: "Room 4", info: "Info about Room 4" },
{ id: 5, name: "Room 5", info: "Info about Room 5" },
{ id: 6, name: "Room 6", info: "Info about Room 6" },
{ id: 7, name: "Room 7", info: "Info about Room 7" },
{ id: 8, name: "Room 8", info: "Info about Room 8" },
{ id: 9, name: "Room 9", info: "Info about Room 9" },
{ id: 10, name: "Room 10", info: "Info about Room 10" },
];

function RoomGrid() {
return (
<Grid templateColumns="repeat(4, 1fr)" gap={2}>
{rooms.map((room) => (
<Box key={room.id} p={4} borderWidth="2px" borderColor="grey.300" borderRadius="5px" w="100%" h="100%" bg="white">
<Box
key={room.id}
p={4}
borderWidth="2px"
borderColor="grey.300"
borderRadius="5px"
w="100%"
h="100%"
bg="white"
>
<Text fontWeight="bold">{room.name}</Text>
<Text>{room.info}</Text>
</Box>
Expand All @@ -27,4 +36,4 @@ function RoomGrid() {
);
}

export default RoomGrid;
export default RoomGrid;
2 changes: 0 additions & 2 deletions frontend/src/constants/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ export const HOME_PAGE = "/home";

export const ANNOUNCEMENTS_PAGE = "/announcements";

export const ANNOUNCEMENTS_PAGE = "/announcements";

export const LOGIN_PAGE = "/login";

export const SIGNUP_PAGE = "/signup";
Expand Down

0 comments on commit 564e39a

Please sign in to comment.