mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
refactor: use tabs instead of spaces
This commit is contained in:
@@ -2,19 +2,19 @@ import { createContext } from 'react';
|
||||
import { CollectionWithLinks } from '~/types/app';
|
||||
|
||||
type CollectionsContextType = {
|
||||
collections: CollectionWithLinks[];
|
||||
setCollections: (
|
||||
collections: CollectionWithLinks[]
|
||||
) => void | CollectionWithLinks[];
|
||||
collections: CollectionWithLinks[];
|
||||
setCollections: (
|
||||
collections: CollectionWithLinks[]
|
||||
) => void | CollectionWithLinks[];
|
||||
};
|
||||
|
||||
const iCollectionsContextState: CollectionsContextType = {
|
||||
collections: [] as CollectionWithLinks[],
|
||||
setCollections: (_: CollectionWithLinks[]) => {},
|
||||
collections: [] as CollectionWithLinks[],
|
||||
setCollections: (_: CollectionWithLinks[]) => {},
|
||||
};
|
||||
|
||||
const CollectionsContext = createContext<CollectionsContextType>(
|
||||
iCollectionsContextState
|
||||
iCollectionsContextState
|
||||
);
|
||||
|
||||
export default CollectionsContext;
|
||||
|
||||
Reference in New Issue
Block a user