Skip to content

Commit

Permalink
fix: return mock in AsideHeaderContext (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrv565 authored Dec 19, 2023
1 parent 68242d3 commit 873fb73
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/AsideHeader/AsideHeaderContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ export interface AsideHeaderContextType {
size: number;
}

export const AsideHeaderContext = React.createContext<AsideHeaderContextType | undefined>(
undefined,
);
export const AsideHeaderContext = React.createContext<AsideHeaderContextType | undefined>({
compact: false,
size: 0,
});

AsideHeaderContext.displayName = 'AsideHeaderContext';

export const AsideHeaderContextProvider = AsideHeaderContext.Provider;
Expand Down

0 comments on commit 873fb73

Please sign in to comment.