Skip to content

Commit

Permalink
SSR on footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppetm committed Jan 1, 2024
1 parent 1ecd075 commit 3d1537c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Footer = () => {

return (
<>
{clientRender && <footer style={{ backgroundColor: appTheme.palette.neutralQuaternaryAlt, borderTop: '1px solid', borderColor: appTheme.palette.neutralLight }} className="pt-5 pb-5">
<footer style={{ backgroundColor: appTheme.palette.neutralQuaternaryAlt, borderTop: '1px solid', borderColor: appTheme.palette.neutralLight }} className="pt-5 pb-5">
<Container style={{ width: '100%', color: appTheme.palette.neutralSecondary }}>

<Row className="mb-4">
Expand Down Expand Up @@ -134,7 +134,7 @@ const Footer = () => {
</Col>

<Col xl={3} lg={2} md={3} sm={12} xs={12}>
<div className="mb-2">
{ clientRender && <div className="mb-2">
<Toggle
label={locale?.settingsPanel.changeTheme}
onText={locale?.settingsPanel.darkTheme}
Expand All @@ -143,9 +143,9 @@ const Footer = () => {
onChange={() => changeTheme(theme)}
theme={appTheme}
/>
</div>
</div> }

<div className="mb-2 language-selector">
{ clientRender && <div className="mb-2 language-selector">
<Label>{locale?.settingsPanel.selectLanguage}</Label>
<Text
variant="medium"
Expand All @@ -164,14 +164,14 @@ const Footer = () => {
>
ENG
</Text>
</div>
</div> }
</Col>

<Col xl={3} lg={4} md={6} sm={12} xs={12}>
<div>
<Text variant="medium" styles={semibold}>{locale?.settingsPanel.selectColor}</Text>
</div>
<SwatchColorPicker selectedId={palette} columnCount={7} cellShape={'square'} colorCells={colorCells} onColorChanged={(id) => { changePalette(id!); }} />
{ clientRender && <SwatchColorPicker selectedId={palette} columnCount={7} cellShape={'square'} colorCells={colorCells} onColorChanged={(id) => { changePalette(id!); }} /> }
</Col>

</Row>
Expand Down Expand Up @@ -211,7 +211,6 @@ const Footer = () => {

</Container>
</footer>
}
</>
);
};
Expand Down

0 comments on commit 3d1537c

Please sign in to comment.