Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Aug 27, 2023
1 parent 8fdeced commit 534cddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/theme-default/slots/ContentTabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const ContentTabs: FC<IContentTabsProps> = ({
onChange,
}) => {
const intl = useIntl();
const { frontmatter: fm } = useRouteMeta();
const { frontmatter } = useRouteMeta();

// TODO: tab.Extra & tab.Action render

return Boolean(tabs?.length) ? (
<ul className="dumi-default-content-tabs">
<li onClick={() => onChange()} data-active={!key || undefined}>
<button type="button">
{fm.title || intl.formatMessage({ id: 'content.tabs.default' })}
{intl.formatMessage({ id: 'content.tabs.default' }, frontmatter)}
</button>
</li>
{tabs!.map((tab) => (
Expand Down

0 comments on commit 534cddb

Please sign in to comment.