Skip to content

Commit

Permalink
test: update test snap and action render usage parseTNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Heising committed Mar 20, 2024
1 parent ff5b197 commit d751307
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 190 deletions.
3 changes: 2 additions & 1 deletion src/tabs/TabNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import TabBar from './TabBar';
import tabBase from '../_common/js/tabs/base';
import useGlobalIcon from '../hooks/useGlobalIcon';
import type { DragSortInnerProps } from '../_util/useDragSorter';
import parseTNode from '../_util/parseTNode';

const { moveActiveTabIntoView, calcScrollLeft, scrollToLeft, scrollToRight, calculateCanToLeft, calculateCanToRight } =
tabBase;
Expand Down Expand Up @@ -281,7 +282,7 @@ const TabNav: React.FC<TabNavProps> = (props) => {
tdSizeClassGenerator(size),
)}
>
{action}
{parseTNode(action)}
</div>
) : null}
</div>
Expand Down
Loading

0 comments on commit d751307

Please sign in to comment.