Skip to content

Commit

Permalink
feat: improve Summary section
Browse files Browse the repository at this point in the history
  • Loading branch information
martapanc committed Mar 14, 2024
1 parent df4df94 commit dde2187
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/organisms/home/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ function buildLink(link: LinkProps, logoVersion: string) {
}

function buildEduLogo(logo: EduLogoProps, logoVersion: string) {
const logoColor =
'text-[' + (logoVersion === 'dark' ? logo.colorDark : logo.color) + ']';
const logoColor = logoVersion === 'dark' ? logo.colorDark : logo.color;

const useSvgFlags =
typeof window !== 'undefined' && isWindowsOS(window.navigator);
Expand All @@ -81,7 +80,7 @@ function buildEduLogo(logo: EduLogoProps, logoVersion: string) {
rel='noopener noreferrer'
className='hover:no-underline'
>
<span className={clsxm(logoColor, 'font-semibold')}>
<span style={{ color: logoColor }} className='font-semibold'>
{logo.label}{' '}
<ReactCountryFlag countryCode={logo.flag} svg={useSvgFlags} />
</span>
Expand Down

0 comments on commit dde2187

Please sign in to comment.