Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e65a975

Browse files
authoredApr 23, 2024··
Merge pull request #575 from captain-Akshay/captain/learningpath
feat(components): no underline
2 parents ab2b042 + 8a221f5 commit e65a975

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
 

‎src/custom/SetupPrerequisite/SetupPrerequisite.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface SetupItem {
99
heading: string;
1010
description: string;
1111
Icon: JSX.Element;
12-
onClick: () => void;
12+
url: string;
1313
}
1414
interface SetupPreReqProps {
1515
Steps: SetupItem[];
@@ -24,7 +24,7 @@ const SetupPreReq: React.FC<SetupPreReqProps> = ({ Steps, PrerequisiteLine }) =>
2424
<ContainerCardWrapper id="Set up">
2525
{Steps.map((item) => {
2626
return (
27-
<Card>
27+
<Card href={item.url} target="_blank">
2828
<CardHeader>
2929
<h2>{item.heading}</h2>
3030
{item.Icon}

‎src/custom/SetupPrerequisite/style.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ const SetupPreReqWrapper = styled('div')({
1313
const ContainerCardWrapper = styled('div')(({ theme }) => ({
1414
display: 'flex',
1515
cursor: 'pointer',
16-
'& div': {
16+
'& a': {
1717
color: theme.palette.text.primary,
1818
margin: '1rem'
1919
}
2020
}));
2121

22-
const Card = styled('div')(({ theme }) => ({
22+
const Card = styled('a')(({ theme }) => ({
2323
padding: '2rem',
24+
textDecoration: 'none',
2425
background: theme.palette.mode === 'light' ? '#EEEEEE' : '#212121',
2526
maxWidth: '20rem',
2627
minHeight: '21.5rem',

‎src/custom/StyledChapter/StyledChapter.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const StyledChapter = styled('div')(({ theme }) => ({
1515
},
1616

1717
'& a': {
18-
color: KEPPEL
18+
color: KEPPEL,
19+
textDecoration: 'none'
1920
},
2021
'& pre': {
2122
backgroundColor: '#011627',

0 commit comments

Comments
 (0)
Please sign in to comment.