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;
|
||||
}
|
||||
|
||||
const GridCarouselContext = createContext<any>(null);
|
||||
const GridCarouselContext = createContext<any>({});
|
||||
|
||||
const GridContainer = styled(motion.div)<{ height: number; itemsPerPage: number }>`
|
||||
display: grid;
|
||||
|
|
Reference in a new issue