From 564e39a17f68bdb27a212abf894b7281b539a763 Mon Sep 17 00:00:00 2001 From: Jesse Huang <87463074+jeessh@users.noreply.github.com> Date: Thu, 26 Sep 2024 18:32:53 -0400 Subject: [PATCH] fixed linting --- .../src/components/pages/home/RoomGrid.tsx | 35 ++++++++++++------- frontend/src/constants/Routes.ts | 2 -- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/pages/home/RoomGrid.tsx b/frontend/src/components/pages/home/RoomGrid.tsx index 642e022..70e2485 100644 --- a/frontend/src/components/pages/home/RoomGrid.tsx +++ b/frontend/src/components/pages/home/RoomGrid.tsx @@ -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 ( {rooms.map((room) => ( - + {room.name} {room.info} @@ -27,4 +36,4 @@ function RoomGrid() { ); } -export default RoomGrid; \ No newline at end of file +export default RoomGrid; diff --git a/frontend/src/constants/Routes.ts b/frontend/src/constants/Routes.ts index 5f72a03..ad38206 100644 --- a/frontend/src/constants/Routes.ts +++ b/frontend/src/constants/Routes.ts @@ -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";