Skip to content

Commit

Permalink
ran linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessh committed Oct 19, 2024
1 parent a9c6997 commit 1b361b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import moment from "moment";
import { Box, Text, Flex, Icon, IconButton } from "@chakra-ui/react";
import PersonOutlineOutlinedIcon from "@mui/icons-material/PersonOutlineOutlined";
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
import ExpandLessIcon from "@mui/icons-material/ExpandLess";

import { Announcement } from "../../../types/NotificationTypes";
Expand All @@ -17,7 +17,7 @@ const AnnouncementNotification = ({

return (
<Box w="100%" p={3}>
<Flex justifyContent="space-betwee" maxW="100%" position="relative">
<Flex justifyContent="space-between" maxW="100%" position="relative">
<Flex alignItems="flex-start" w="100%" overflow="hidden">
<Box
borderRadius="full"
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/components/pages/home/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from "react";
import { Flex, Box, Heading, Text } from "@chakra-ui/react";
import { Flex, Box, Text } from "@chakra-ui/react";
import { announcementsMockData } from "../../../mocks/notifications";
import AnnouncementNotification from "./AnnouncementNotification";
import { Announcement } from "../../../types/NotificationTypes";
Expand Down Expand Up @@ -125,7 +125,11 @@ const HomePage = (): React.ReactElement => {
</Text>
</Flex>

<Text onClick={() => setViewAll(!viewAll)} cursor="pointer" textDecoration="underline">
<Text
onClick={() => setViewAll(!viewAll)}
cursor="pointer"
textDecoration="underline"
>
{viewAll ? "Collapse All" : "View all"}
</Text>
</Flex>
Expand Down

0 comments on commit 1b361b2

Please sign in to comment.