Skip to content

Commit

Permalink
Issue #PS-0000 fix: Fixed UI
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Dec 1, 2024
1 parent a8da962 commit 5a11f52
Showing 1 changed file with 43 additions and 45 deletions.
88 changes: 43 additions & 45 deletions src/pages/course-planner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,12 @@ const Foundation = () => {
</Box>
<Divider />
<Grid container spacing={2} mt={2}>
<Box
sx={{
display: "flex",
flexDirection: "row",
}}
>
{role === "Central Admin CCTA" ? (
stateNames.map((stateName) => (

{role === "Central Admin CCTA" ? (
stateNames.map((stateName) => (
<Grid
item xs={12} md={4} lg={4}
>
<Box
key={stateName}
sx={{
Expand All @@ -227,7 +225,7 @@ const Foundation = () => {
marginLeft: "15px",
marginBottom: "10px",
marginRight: "10px",
width: "250px",
width: "90%",
"&:hover": {
backgroundColor: "#D0C5B4",
},
Expand Down Expand Up @@ -256,49 +254,49 @@ const Foundation = () => {
</Button>
</Box>
</Box>
))
) : (
</Grid>
))
) : (
<Box
sx={{
cursor: "pointer",
border: "1px solid #D0C5B4",
padding: "10px",
borderRadius: "8px",
display: "flex",
justifyContent: "space-between",
marginBottom: "10px",
marginRight: "10px",
width: "100%",
"&:hover": {
backgroundColor: "#D0C5B4",
},
}}
onClick={() => handleCardClick(store?.matchingstate?.name)}
>
<Box
sx={{
cursor: "pointer",
border: "1px solid #D0C5B4",
padding: "10px",
borderRadius: "8px",
display: "flex",
justifyContent: "space-between",
marginBottom: "10px",
marginRight: "10px",
width: "250px",
"&:hover": {
backgroundColor: "#D0C5B4",
},
alignItems: "center",
gap: "18px",
}}
onClick={() => handleCardClick(store?.matchingstate?.name)}
>
<Box
sx={{
display: "flex",
alignItems: "center",
gap: "18px",
<FolderOutlinedIcon />
<Typography>{store?.matchingstate?.name}</Typography>
</Box>
<Box sx={{ display: "flex", alignItems: "center" }}>
<Button
onClick={(e) => {
e.stopPropagation();
handleCopyLink(store?.matchingstate?.name);
}}
sx={{ minWidth: "auto", padding: 0 }}
>
<FolderOutlinedIcon />
<Typography>{store?.matchingstate?.name}</Typography>
</Box>
<Box sx={{ display: "flex", alignItems: "center" }}>
<Button
onClick={(e) => {
e.stopPropagation();
handleCopyLink(store?.matchingstate?.name);
}}
sx={{ minWidth: "auto", padding: 0 }}
>
{/* Add any icon or text for the copy link button */}
</Button>
</Box>
{/* Add any icon or text for the copy link button */}
</Button>
</Box>
)}
</Box>
</Box>
)}
</Grid>
</Box>
)}
Expand All @@ -315,4 +313,4 @@ export async function getStaticProps({ locale }: { locale: string }) {
...(await serverSideTranslations(locale, ["common"])),
},
};
}
}

0 comments on commit 5a11f52

Please sign in to comment.