Skip to content

Commit

Permalink
Merge pull request #575 from captain-Akshay/captain/learningpath
Browse files Browse the repository at this point in the history
feat(components): no underline
  • Loading branch information
leecalcote authored Apr 23, 2024
2 parents ab2b042 + 8a221f5 commit e65a975
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/custom/SetupPrerequisite/SetupPrerequisite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface SetupItem {
heading: string;
description: string;
Icon: JSX.Element;
onClick: () => void;
url: string;
}
interface SetupPreReqProps {
Steps: SetupItem[];
Expand All @@ -24,7 +24,7 @@ const SetupPreReq: React.FC<SetupPreReqProps> = ({ Steps, PrerequisiteLine }) =>
<ContainerCardWrapper id="Set up">
{Steps.map((item) => {
return (
<Card>
<Card href={item.url} target="_blank">
<CardHeader>
<h2>{item.heading}</h2>
{item.Icon}
Expand Down
5 changes: 3 additions & 2 deletions src/custom/SetupPrerequisite/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ const SetupPreReqWrapper = styled('div')({
const ContainerCardWrapper = styled('div')(({ theme }) => ({
display: 'flex',
cursor: 'pointer',
'& div': {
'& a': {
color: theme.palette.text.primary,
margin: '1rem'
}
}));

const Card = styled('div')(({ theme }) => ({
const Card = styled('a')(({ theme }) => ({
padding: '2rem',
textDecoration: 'none',
background: theme.palette.mode === 'light' ? '#EEEEEE' : '#212121',
maxWidth: '20rem',
minHeight: '21.5rem',
Expand Down
3 changes: 2 additions & 1 deletion src/custom/StyledChapter/StyledChapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const StyledChapter = styled('div')(({ theme }) => ({
},

'& a': {
color: KEPPEL
color: KEPPEL,
textDecoration: 'none'
},
'& pre': {
backgroundColor: '#011627',
Expand Down

0 comments on commit e65a975

Please sign in to comment.