Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summit 2023 to develop #409

Merged
merged 8 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/summit-2023/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/>
<meta
property="og:image"
content="%PUBLIC_URL%/Ballot_2023_share_card.png"
content="%PUBLIC_URL%/static/share-card.png"
/>
<meta
property="og:image:width"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import VerifiedIcon from '@mui/icons-material/Verified';
import React from 'react';
import './ConnectWalletButton.scss';
import { env } from 'common/constants/env';
import { getUserInSession, tokenIsExpired } from '../../../utils/session';
import {clearUserInSessionStorage, getUserInSession, tokenIsExpired} from '../../../utils/session';

type ConnectWalletButtonProps = {
disableBackdropClick?: boolean;
Expand Down Expand Up @@ -39,6 +39,7 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {

const onDisconnectWallet = () => {
disconnect();
clearUserInSessionStorage();
eventBus.publish('showToast', 'Wallet disconnected successfully');
};

Expand Down
42 changes: 10 additions & 32 deletions ui/summit-2023/src/components/common/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Typography, Grid, IconButton, Tooltip } from '@mui/material';
import styles from './Footer.module.scss';
import discordLogo from '../../../common/resources/images/discord-icon.svg';
import ContactSupportOutlinedIcon from '@mui/icons-material/ContactSupportOutlined';
import SupportIcon from '@mui/icons-material/SupportAgent';
import { env } from 'common/constants/env';
import { NavLink } from 'react-router-dom';
import { i18n } from 'i18n';
Expand All @@ -14,7 +14,7 @@ const Footer: React.FC = () => {
container
spacing={1}
direction={{ sm: 'column', md: 'row' }}
justifyContent="center"
justifyContent="space-between"
alignItems="center"
className={styles.footer}
>
Expand All @@ -38,7 +38,7 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={6}
sm={'auto'}
>
<Grid
container
Expand All @@ -49,7 +49,7 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={3}
sm={'auto'}
>
<NavLink to="/termsandconditions">
<Typography
Expand All @@ -65,7 +65,7 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={3}
sm={'auto'}
>
<NavLink to="/privacypolicy">
<Typography
Expand All @@ -81,48 +81,26 @@ const Footer: React.FC = () => {
<Grid
item
xs={12}
sm={4}
>
<Typography
variant="body2"
justifyContent="center"
>
Version {env.APP_VERSION}
<NavLink
to={'https://status2023.voting.summit.cardano.org/'}
target="_blank"
>
<span
className={styles.link}
>
Status
</span>
</NavLink>
</Typography>
</Grid>

<Grid
item
xs={12}
sm={1}
sm={'auto'}
>
<Tooltip
title="Get support"
placement="top"
>
<IconButton
onClick={() => openNewTab(env.DISCORD_SUPPORT_CHANNEL_URL)}
sx={{ m: -1 }}
size="large"
sx={{p: 0, color: '#434656'}}
>
<ContactSupportOutlinedIcon/>
<SupportIcon/>
</IconButton>
</Tooltip>
</Grid>

<Grid
item
xs={12}
sm={1}
sm={'auto'}
>
<Tooltip
title="Join our Discord"
Expand Down
1 change: 0 additions & 1 deletion ui/summit-2023/src/pages/Leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ const Leaderboard = () => {
</StatsTile>
<StatsTile
title="Votes Per Category"
summary={<span style={{ color: '#061d3c' }}>{statsSum || placeholder}</span>}
dataTestId="votes-per-category"
>
<Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from './StatsTile.module.scss';

type StatsTilePorps = {
title: string | React.ReactElement;
summary: string | React.ReactElement;
summary?: string | React.ReactElement;
children: React.ReactNode;
dataTestId: string;
};
Expand Down