Skip to content

Commit a13b2c7

Browse files
committed
[shared-ux] revert unintended diff
1 parent 095a3d2 commit a13b2c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/shared-ux/page/solution_nav/src/solution_nav.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export const SolutionNav: FC<SolutionNavProps> = ({
103103
canBeCollapsed = true,
104104
...rest
105105
}) => {
106-
const euiThemeContext = useEuiTheme();
107106
const isSmallerBreakpoint = useIsWithinBreakpoints(mobileBreakpoints);
108107
const isMediumBreakpoint = useIsWithinBreakpoints(['m']);
109108
const isLargerBreakpoint = useIsWithinMinBreakpoint('l');
@@ -179,7 +178,7 @@ export const SolutionNav: FC<SolutionNavProps> = ({
179178
);
180179
}, [children, headingID, isCustomSideNav, isHidden, items, rest]);
181180

182-
const { euiTheme } = euiThemeContext;
181+
const { euiTheme } = useEuiTheme();
183182
const navWidth = useMemo(() => {
184183
if (isLargerBreakpoint) {
185184
return isOpenOnDesktop ? FLYOUT_SIZE_CSS : euiTheme.size.xxl;

0 commit comments

Comments
 (0)