Skip to content

Commit

Permalink
Added docs link (#1497)
Browse files Browse the repository at this point in the history
* Added doc link

* lingui extract

Co-authored-by: GitHub Actions <actions@github.com>
  • Loading branch information
RyRy79261 and actions-user authored Sep 7, 2021
1 parent a56307b commit fa325f5
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/common-components/src/Icons/icons/Document.icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as React from "react"
import createSvgIcon from "../createSvgIcon"
import { ReactComponent as DocumentSvg } from "../svgs/document.svg"

export { DocumentSvg }

export default createSvgIcon(<DocumentSvg />)
1 change: 1 addition & 0 deletions packages/common-components/src/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export { default as DinersclubCardIcon, DinersclubCardSvg } from "./icons/Diners
export { default as DirectionalDownIcon, DirectionalDownSvg } from "./icons/DirectionalDown.icon"
export { default as DirectionalRightIcon, DirectionalRightSvg } from "./icons/DirectionalRight.icon"
export { default as DiscoverCardIcon, DiscoverCardSvg } from "./icons/DiscoverCard.icon"
export { default as DocumentIcon, DocumentSvg } from "./icons/Document.icon"
export { default as DownloadIcon, DownloadSvg } from "./icons/Download.icon"
export { default as EditIcon, EditSvg } from "./icons/Edit.icon"
export { default as EthereumLogoIcon, EthereumLogoSvg } from "./icons/EthereumLogo.icon"
Expand Down
3 changes: 3 additions & 0 deletions packages/common-components/src/Icons/svgs/document.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion packages/storage-ui/src/Components/Layouts/AppNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
formatBytes,
ChainsafeLogo,
FolderSvg,
SettingSvg
SettingSvg,
DocumentSvg
} from "@chainsafe/common-components"
import { ROUTE_LINKS } from "../StorageRoutes"
import { Trans } from "@lingui/macro"
Expand Down Expand Up @@ -292,6 +293,21 @@ const AppNav: React.FC<IAppNav> = ({ navOpen, setNavOpen }: IAppNav) => {
<Trans>Settings</Trans>
</Typography>
</Link>
<a
data-cy="docs-nav"
className={classes.navItem}
href="https://docs.storage.chainsafe.io/"
target="_blank"
rel="noopener noreferrer"
>
<DocumentSvg />
<Typography
variant="h5"
className={classes.navItemText}
>
<Trans>Docs</Trans>
</Typography>
</a>
</nav>
</div>
<section>
Expand Down
3 changes: 3 additions & 0 deletions packages/storage-ui/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ msgstr "Deletion successful"
msgid "Didn't receive the email ?"
msgstr "Didn't receive the email ?"

msgid "Docs"
msgstr "Docs"

msgid "Download"
msgstr "Download"

Expand Down

0 comments on commit fa325f5

Please sign in to comment.