Skip to content

Commit

Permalink
fix: useBaseUrl on translated links (verdaccio#2354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Moreno authored Jul 27, 2021
1 parent d1d820f commit 2808cc2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/src/components/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Features = (): React.ReactElement => (
))}
</div>
<div className={styles.linkFeatures}>
<Link to={useBaseUrl("/docs/configuration")} className="link-primary">
<Link to={useBaseUrl('/docs/configuration')} className="link-primary">
<Translate>Discover more features</Translate>
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Header = (): React.ReactElement => {
<a href="https://github.com/verdaccio/verdaccio" className="link-secondary">
GITHUB
</a>
<Link to={useBaseUrl("/docs/what-is-verdaccio")} className="link-primary">
<Link to={useBaseUrl('/docs/what-is-verdaccio')} className="link-primary">
<Translate>GET STARTED</Translate>
</Link>
<a href="https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md" className="link-secondary">
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/WhatIsVerdaccio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const WhatIs = (): React.ReactElement => (
services such as Amazon&apos;s S3, Google Cloud Storage or create your own plugin.
</Translate>
</p>
<Link to={useBaseUrl("/docs/installation")} className="link-primary">
<Link to={useBaseUrl('/docs/installation')} className="link-primary">
<Translate>Dive into Verdaccio</Translate>
</Link>
<Divider />
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const SUPPORT_LINKS = (lang: string) => [
<Translate
values={{
link: (
<Link to={useBaseUrl("/docs/what-is-verdaccio")}>
<Link to={useBaseUrl('/docs/what-is-verdaccio')}>
<Translate>documentation on this site</Translate>
</Link>
),
Expand Down

0 comments on commit 2808cc2

Please sign in to comment.