Skip to content

Commit

Permalink
adjsut witdh of cards in responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddaqqa committed Feb 29, 2024
1 parent bae6608 commit bc9b094
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Partners/PartnerCard.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Box, Typography } from '@mui/material'

import PartnerBusinessFields from './PartnerBusinessFields'
import React from 'react'
import { PartnerDataType } from '../../@types/partners'
import PartnerBusinessFields from './PartnerBusinessFields'
import PartnerFlag from './PartnerFlag'
import PartnerLogo from './PartnerLogo'
import React from 'react'

interface PartnerCardProps {
onClick: () => void
Expand Down Expand Up @@ -33,7 +33,7 @@ const PartnerCard: React.FC<PartnerCardProps> = ({ partner, clickable, onClick }
minWidth: { xs: '100%', sm: '343px' },
cursor: clickable ? 'pointer' : 'default',
flex: '1 1 23%',
maxWidth: { xs: '100%', md: '50%', lg: '32%', xl: '25%' },
maxWidth: { xs: '100%', md: '50%', xl: '25%' },
background: theme => theme.palette.card.background,
border: theme => `2px solid ${theme.palette.card.border}`,
borderRadius: '16px',
Expand Down Expand Up @@ -104,4 +104,4 @@ const PartnerCard: React.FC<PartnerCardProps> = ({ partner, clickable, onClick }
)
}

export default PartnerCard
export default React.memo(PartnerCard)
2 changes: 1 addition & 1 deletion src/views/landing/LandingPageAppWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function LandingPageAppWidget({ name, description, onClick }) {
}}
>
<Box mb={2}>
<Typography variant={'h4'}>{name}</Typography>
<Typography variant={'h5'}>{name}</Typography>
<Typography>{description}</Typography>
</Box>

Expand Down

0 comments on commit bc9b094

Please sign in to comment.