Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(docz-theme-default): logo link point to dynamic base (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored and pedronauck committed Apr 18, 2019
1 parent 9401676 commit f7cc750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/docz-theme-default/src/components/shared/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ interface LogoProps {

export const Logo: SFC<LogoProps> = ({ showBg }) => {
const {
base,
title,
linkComponent: Link,
themeConfig: { logo },
Expand All @@ -74,7 +75,7 @@ export const Logo: SFC<LogoProps> = ({ showBg }) => {
if (!Link) return null
return (
<Wrapper showBg={showBg}>
<Link to="/">
<Link to={typeof base === 'string' ? base : '/'}>
{logo ? (
<LogoImg src={logo.src} width={logo.width} alt={title} />
) : (
Expand Down
1 change: 1 addition & 0 deletions core/docz/src/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Config {
native: boolean
separator: string
codeSandbox: boolean
base?: string
}

export type Entries = Array<{ key: string; value: Entry }>
Expand Down

0 comments on commit f7cc750

Please sign in to comment.