Skip to content

Commit

Permalink
Fix link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elboletaire committed Jul 31, 2024
1 parent e8b9cab commit 4e5ee73
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
5 changes: 1 addition & 4 deletions src/components/Process/View.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
Text,
VStack,
} from '@chakra-ui/react'
import { Link as ReactRouterLink } from 'react-router-dom'

import { useElection } from '@vocdoni/react-providers'
import { ElectionStatus, PublishedElection } from '@vocdoni/sdk'
Expand Down Expand Up @@ -150,9 +149,7 @@ export const ProcessView = () => {
components={{
bold: <Text as='span' fontWeight='bold' />,
normal: <Text as='span' />,
customLink: (
<Link as={ReactRouterLink} to='' textDecor='underline' _hover={{ textDecoration: 'none' }} />
),
vocdoni: <Link href='https://vocdoni.io' />,
}}
/>
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"relative_inline": "{{ status }} {{ date, relative(past: fa %time; future: en %time) }}",
"starts": "Comença el procés"
},
"footer_message": "<bold>Esquerra Republicana</bold> <normal>utilitza la plataforma de programari lliure Vocdoni basada en tecnologia blockchain per gestionar i registrar les votacions de manera segura i transparent. Per més informació sobre la plataforma podeu consultar el següent enllaç:</normal> <customLink>vocdoni.io</customLink>",
"footer_message": "<bold>Esquerra Republicana</bold> <normal>utilitza la plataforma de programari lliure Vocdoni basada en tecnologia blockchain per gestionar i registrar les votacions de manera segura i transparent. Per més informació sobre la plataforma podeu consultar el següent enllaç:</normal> <vocdoni>vocdoni.io</vocdoni>",
"gitcoin": {
"all_of_them": "(Tots ells)",
"gps_score": "Gitcoin Passport Score: Puntuació mínima {{score}}",
Expand Down
6 changes: 6 additions & 0 deletions src/theme/components/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ const primary = defineStyle({
})

export const Link = defineStyleConfig({
baseStyle: {
textDecoration: 'underline',
_hover: {
color: 'link.primary',
},
},
variants: { contrast, primary },
})
7 changes: 0 additions & 7 deletions src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export const theme = extendTheme(vtheme, {
h: 6,
},
},
link: {
color: 'link.primary',
textDecoration: 'underline',
_hover: {
textDecoration: 'none',
},
},
'.md-sizes': {
'& :first-of-type': {
mt: 0,
Expand Down

1 comment on commit 4e5ee73

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.