Set default context to empty object
This commit is contained in:
parent
ae3c331061
commit
3dc3d6fe28
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ interface GridCarouselProps {
|
||||||
uniqueId: string;
|
uniqueId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const GridCarouselContext = createContext<any>(null);
|
const GridCarouselContext = createContext<any>({});
|
||||||
|
|
||||||
const GridContainer = styled(motion.div)<{ height: number; itemsPerPage: number }>`
|
const GridContainer = styled(motion.div)<{ height: number; itemsPerPage: number }>`
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
Reference in a new issue