Skip to content

Commit 525919a

Browse files
authored
Merge pull request #241 from Student-Activity-Center-IIIT-NR/dev
bug fix
2 parents 2e86990 + b19e658 commit 525919a

File tree

4 files changed

+4
-301
lines changed

4 files changed

+4
-301
lines changed

components/Header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const StyledHeader = styled(Stack)({
1414

1515
type Props = {};
1616

17-
const Header = React.forwardRef(({ }: Props, ref) => {
17+
const Header = React.forwardRef<HTMLDivElement, Props>(({ }: Props, ref) => {
1818
return (
1919
<StyledHeader color="white" px="20px">
2020
<Container maxWidth="xl" disableGutters>

components/ui/button.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

components/ui/carousel.tsx

Lines changed: 0 additions & 239 deletions
This file was deleted.

features/home/News.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Box from "@mui/material/Box";
22
import Stack from "@mui/material/Stack";
33
import Divider from "@mui/material/Divider";
44
import Typography from "@mui/material/Typography";
5-
import { Button } from "@/components/ui/button";
5+
import Button from "@mui/material/Button";
66
import Container from "@mui/material/Container";
77
import Grid2 from "@mui/material/Unstable_Grid2/Grid2";
88
import Image, { StaticImageData } from "next/image";
@@ -155,15 +155,15 @@ const News: NextPage = () => {
155155
borderRadius: 2,
156156
}}
157157
component="img" src=
158-
{newsData[curr].img.src}>
158+
{newsData[curr].img?.src || ""}>
159159
</Box>
160160
</Box>
161161
<Box sx={{width:"50%" , padding:"10px"}}>
162162
<Box sx={{maxheight:"80%", fontSize:"1.3rem" , height: 500 , padding:2}}>{newsData[curr].text}</Box>
163163
<Box sx={{minHeight:"20%" , padding:2 , fontSize:"1.1rem" , display:"flex"}}>
164164
<Box sx={{minWidth:"70%"}}></Box>
165165
<Box sx={{display:"flex" , alignItems:"center" }}>
166-
<Box component="img" src={newsData[curr].authImg.src} sx={{height:40 , width:40, borderRadius:10 , marginRight:1 }}></Box>
166+
<Box component="img" src={newsData[curr].authImg?.src || ""} sx={{height:40 , width:40, borderRadius:10 , marginRight:1 }}></Box>
167167
<Box>{newsData[curr].authName}</Box>
168168
</Box>
169169
</Box>

0 commit comments

Comments
 (0)