Skip to content

Commit

Permalink
chore: restore docs link
Browse files Browse the repository at this point in the history
  • Loading branch information
slavastartsev committed Jan 29, 2025
1 parent 06c890a commit bb6d02c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
3 changes: 3 additions & 0 deletions apps/evm/src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ const Header = (): JSX.Element => {
<NavItem isExternal href={ExternalLinks.SAFE} size='s'>
<Trans>Multisig</Trans>
</NavItem>
<NavItem isExternal href={ExternalLinks.DOCS} size='s'>
<Trans>Docs</Trans>
</NavItem>
</Nav>
</PopoverBody>
</PopoverContent>
Expand Down
3 changes: 3 additions & 0 deletions apps/evm/src/components/Layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ const Sidebar = ({ isMobile }: { isMobile: boolean }): JSX.Element | null => {
<NavItem isExternal href={ExternalLinks.HOMEPAGE} onPress={handleClose}>
<Trans>About</Trans>
</NavItem>
<NavItem isExternal href={ExternalLinks.DOCS} onPress={handleClose}>
<Trans>Docs</Trans>
</NavItem>
</Nav>
<SocialsGroup />
</Flex>
Expand Down
11 changes: 1 addition & 10 deletions apps/evm/src/components/SocialsGroup/SocialsGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { Button, ButtonProps, Flex, FlexProps } from '@gobob/ui';
import { Discord, Twitter } from '@gobob/icons';
import { t, Trans } from '@lingui/macro';
import { t } from '@lingui/macro';
import { useLingui } from '@lingui/react';

import { ExternalLinks } from '@/constants';

type Props = {
showDocs?: boolean;
variant?: ButtonProps['variant'];
};

Expand All @@ -15,7 +14,6 @@ type InheritAttrs = Omit<FlexProps, keyof Props>;
type SocialsGroupProps = Props & InheritAttrs;

const SocialsGroup = ({
showDocs,
gap = 's',
justifyContent = 'center',
variant = 'outline',
Expand All @@ -25,13 +23,6 @@ const SocialsGroup = ({

return (
<Flex gap={gap} justifyContent={justifyContent} {...props}>
{showDocs && (
<Button asChild isIconOnly size='s' variant={variant}>
<a href={ExternalLinks.DOCS} rel='noreferrer' target='_blank'>
<Trans>Docs</Trans>
</a>
</Button>
)}
<Button asChild isIconOnly size='s' variant={variant}>
<a aria-label={t(i18n)`navigate to X social`} href={ExternalLinks.X} rel='noreferrer' target='_blank'>
<Twitter size='s' />
Expand Down
7 changes: 4 additions & 3 deletions apps/evm/src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,8 @@ msgstr "Discover All Apps"
#~ msgid "Discover BOB, the first hybrid Layer 2 in the Superchain!"
#~ msgstr "Discover BOB, the first hybrid Layer 2 in the Superchain!"

#: src/components/SocialsGroup/SocialsGroup.tsx:31
#: src/components/Layout/Header.tsx:92
#: src/components/Layout/Sidebar.tsx:73
msgid "Docs"
msgstr "Docs"

Expand Down Expand Up @@ -1127,7 +1128,7 @@ msgstr "navigate to {owner} quest: {title}"
msgid "navigate to Common Prefix audit"
msgstr "navigate to Common Prefix audit"

#: src/components/SocialsGroup/SocialsGroup.tsx:41
#: src/components/SocialsGroup/SocialsGroup.tsx:32
msgid "navigate to discord"
msgstr "navigate to discord"

Expand All @@ -1147,7 +1148,7 @@ msgstr "navigate to OtterSec audit"
msgid "navigate to Trails of Bits audit"
msgstr "navigate to Trails of Bits audit"

#: src/components/SocialsGroup/SocialsGroup.tsx:36
#: src/components/SocialsGroup/SocialsGroup.tsx:27
msgid "navigate to X social"
msgstr "navigate to X social"

Expand Down
7 changes: 4 additions & 3 deletions apps/evm/src/locales/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,8 @@ msgstr "探索全部应用"
#~ msgid "Discover BOB, the first hybrid Layer 2 in the Superchain!"
#~ msgstr ""

#: src/components/SocialsGroup/SocialsGroup.tsx:31
#: src/components/Layout/Header.tsx:92
#: src/components/Layout/Sidebar.tsx:73
msgid "Docs"
msgstr ""

Expand Down Expand Up @@ -1338,7 +1339,7 @@ msgstr ""
msgid "navigate to Common Prefix audit"
msgstr ""

#: src/components/SocialsGroup/SocialsGroup.tsx:41
#: src/components/SocialsGroup/SocialsGroup.tsx:32
msgid "navigate to discord"
msgstr "<<<<<<< HEAD"

Expand All @@ -1358,7 +1359,7 @@ msgstr ""
msgid "navigate to Trails of Bits audit"
msgstr ""

#: src/components/SocialsGroup/SocialsGroup.tsx:36
#: src/components/SocialsGroup/SocialsGroup.tsx:27
msgid "navigate to X social"
msgstr ""

Expand Down

0 comments on commit bb6d02c

Please sign in to comment.