diff --git a/.changelog/1155.trivial.md b/.changelog/1155.trivial.md new file mode 100644 index 000000000..b68dfcbee --- /dev/null +++ b/.changelog/1155.trivial.md @@ -0,0 +1 @@ +Add Social section to Consensus dashboard diff --git a/src/app/pages/ParatimeDashboardPage/images/background-social.png b/src/app/components/Social/images/background-social.png similarity index 100% rename from src/app/pages/ParatimeDashboardPage/images/background-social.png rename to src/app/components/Social/images/background-social.png diff --git a/src/app/pages/ParatimeDashboardPage/images/discord.svg b/src/app/components/Social/images/discord.svg similarity index 100% rename from src/app/pages/ParatimeDashboardPage/images/discord.svg rename to src/app/components/Social/images/discord.svg diff --git a/src/app/pages/ParatimeDashboardPage/images/reddit.svg b/src/app/components/Social/images/reddit.svg similarity index 100% rename from src/app/pages/ParatimeDashboardPage/images/reddit.svg rename to src/app/components/Social/images/reddit.svg diff --git a/src/app/pages/ParatimeDashboardPage/images/telegram.svg b/src/app/components/Social/images/telegram.svg similarity index 100% rename from src/app/pages/ParatimeDashboardPage/images/telegram.svg rename to src/app/components/Social/images/telegram.svg diff --git a/src/app/components/Social/images/twitter.svg b/src/app/components/Social/images/twitter.svg new file mode 100644 index 000000000..7777dd7b6 --- /dev/null +++ b/src/app/components/Social/images/twitter.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/app/pages/ParatimeDashboardPage/images/youtube.svg b/src/app/components/Social/images/youtube.svg similarity index 100% rename from src/app/pages/ParatimeDashboardPage/images/youtube.svg rename to src/app/components/Social/images/youtube.svg diff --git a/src/app/pages/ParatimeDashboardPage/Social.tsx b/src/app/components/Social/index.tsx similarity index 95% rename from src/app/pages/ParatimeDashboardPage/Social.tsx rename to src/app/components/Social/index.tsx index 868474789..633a5c6a1 100644 --- a/src/app/pages/ParatimeDashboardPage/Social.tsx +++ b/src/app/components/Social/index.tsx @@ -27,7 +27,13 @@ const SocialLink: FC = ({ label, href, isMobile, img }) => { href={href} color={COLORS.white} underline="none" - sx={{ display: 'flex', flexDirection: 'column', mx: isMobile ? 4 : 0, mt: isMobile ? 4 : 0 }} + sx={{ + display: 'flex', + alignItems: 'center', + flexDirection: 'column', + mx: isMobile ? 4 : 0, + mt: isMobile ? 4 : 0, + }} rel="noopener noreferrer" target="_blank" > diff --git a/src/app/pages/ConsensusDashboardPage/index.tsx b/src/app/pages/ConsensusDashboardPage/index.tsx new file mode 100644 index 000000000..c55330436 --- /dev/null +++ b/src/app/pages/ConsensusDashboardPage/index.tsx @@ -0,0 +1,16 @@ +import { FC } from 'react' +import Divider from '@mui/material/Divider' +import { PageLayout } from '../../components/PageLayout' +import { useScreenSize } from '../../hooks/useScreensize' +import { Social } from '../../components/Social' + +export const ConsensusDashboardPage: FC = () => { + const { isMobile } = useScreenSize() + + return ( + + + + + ) +} diff --git a/src/app/pages/ParatimeDashboardPage/images/twitter.svg b/src/app/pages/ParatimeDashboardPage/images/twitter.svg deleted file mode 100644 index fb36180ea..000000000 --- a/src/app/pages/ParatimeDashboardPage/images/twitter.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/app/pages/ParatimeDashboardPage/index.tsx b/src/app/pages/ParatimeDashboardPage/index.tsx index 9d7911d70..fc419ac57 100644 --- a/src/app/pages/ParatimeDashboardPage/index.tsx +++ b/src/app/pages/ParatimeDashboardPage/index.tsx @@ -2,7 +2,7 @@ import { FC } from 'react' import Divider from '@mui/material/Divider' import Grid from '@mui/material/Grid' import { useScreenSize } from '../../hooks/useScreensize' -import { Social } from './Social' +import { Social } from '../../components/Social' import { LearningMaterials } from './LearningMaterials' import { LatestBlocks } from './LatestBlocks' import { LatestTransactions } from './LatestTransactions' diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index bd6a104b7..5b19218df 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -123,7 +123,7 @@ "verifyInSourcify": "Verify through Sourcify" } }, - "dapps":{ + "dapps": { "wrose": { "description": "Looking to wrap or unwrap your wROSE?", "label": "Use our ROSE (un)wrapper" @@ -223,7 +223,7 @@ "header": "Join us", "reddit": "Reddit", "telegram": "Telegram", - "twitter": "Twitter", + "twitter": "X", "youtube": "Youtube" }, "tableLayoutButton": {