Skip to content

Commit

Permalink
Merge pull request #1155 from oasisprotocol/mz/consensusSocialSection
Browse files Browse the repository at this point in the history
Add Social section to Consensus dashboard
  • Loading branch information
buberdds authored Jan 17, 2024
2 parents 403445b + 5b5004f commit cb01ae1
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changelog/1155.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add Social section to Consensus dashboard
7 changes: 7 additions & 0 deletions src/app/components/Social/images/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ const SocialLink: FC<SocialLinkProps> = ({ 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"
>
Expand Down
16 changes: 16 additions & 0 deletions src/app/pages/ConsensusDashboardPage/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<PageLayout>
<Divider variant="layout" sx={{ mt: isMobile ? 4 : 0 }} />
<Social />
</PageLayout>
)
}
3 changes: 0 additions & 3 deletions src/app/pages/ParatimeDashboardPage/images/twitter.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/pages/ParatimeDashboardPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"verifyInSourcify": "Verify through <SourcifyLink>Sourcify</SourcifyLink>"
}
},
"dapps":{
"dapps": {
"wrose": {
"description": "Looking to wrap or unwrap your wROSE?",
"label": "Use our ROSE (un)wrapper"
Expand Down Expand Up @@ -223,7 +223,7 @@
"header": "Join us",
"reddit": "Reddit",
"telegram": "Telegram",
"twitter": "Twitter",
"twitter": "X",
"youtube": "Youtube"
},
"tableLayoutButton": {
Expand Down

0 comments on commit cb01ae1

Please sign in to comment.