Skip to content

Commit

Permalink
fix: move DefaultHeaderText
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewgallo committed Dec 12, 2024
1 parent 5d865be commit 498ad8c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/gatsby-theme-carbon/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ import useMetadata from '../../util/hooks/useMetadata';

import * as styles from './Header.module.scss';

const DefaultHeaderText = () => (
<>
Carbon&nbsp;<span>Design System</span>
</>
);

const defaults = {
children: <DefaultHeaderText />,
};
Expand Down Expand Up @@ -79,10 +85,4 @@ const Header = ({ children = defaults.children }) => {
);
};

const DefaultHeaderText = () => (
<>
Carbon&nbsp;<span>Design System</span>
</>
);

export default Header;

0 comments on commit 498ad8c

Please sign in to comment.