mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-05 19:07:48 +02:00
fix(v2): Added back support for optional logo field in theme-classic navbarConfig (#3611)
* fix(v2): Added back support for optional logo field in theme-classic navbarConfig * fix tests * Revert to default to {} in useLogo approach
This commit is contained in:
parent
6930e91508
commit
003b457c88
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import useThemeConfig from '../../utils/useThemeConfig';
|
||||||
|
|
||||||
const useLogo = (): useLogoReturns => {
|
const useLogo = (): useLogoReturns => {
|
||||||
const {
|
const {
|
||||||
navbar: {logo},
|
navbar: {logo = {}},
|
||||||
} = useThemeConfig();
|
} = useThemeConfig();
|
||||||
const {isDarkTheme} = useThemeContext();
|
const {isDarkTheme} = useThemeContext();
|
||||||
const logoLink = useBaseUrl(logo.href || '/');
|
const logoLink = useBaseUrl(logo.href || '/');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue