Skip to content

Commit

Permalink
update footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalsoueidan committed Jun 27, 2024
1 parent 07509af commit 2a76fc3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export function Footer({
}
}, []);

const getNewUrl = (newDomain: string) => `${newDomain}${currentPath}`;
const getNewUrl = (newDomain: string) => {
localStorage.setItem('languageDecision', 'true');
window.location.href = `${newDomain}${currentPath}`;
};

return (
<footer className={classes.footer}>
Expand Down Expand Up @@ -129,24 +132,21 @@ export function Footer({
<ActionIcon
size="xl"
variant="transparent"
component={Link}
to={getNewUrl('https://www.bysisters.dk')}
onClick={() => getNewUrl('https://www.bysisters.dk')}
>
<DK style={{width: rem(32), height: rem(32)}} />
</ActionIcon>
<ActionIcon
size="xl"
variant="transparent"
component={Link}
to={getNewUrl('https://en.bysisters.dk')}
onClick={() => getNewUrl('https://en.bysisters.dk')}
>
<US style={{width: rem(32), height: rem(32)}} />
</ActionIcon>
<ActionIcon
size="xl"
variant="transparent"
component={Link}
to={getNewUrl('https://ar.bysisters.dk')}
onClick={() => getNewUrl('https://ar.bysisters.dk')}
>
<AE style={{width: rem(32), height: rem(32)}} />
</ActionIcon>
Expand Down

0 comments on commit 2a76fc3

Please sign in to comment.