Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Mar 30, 2022
1 parent e0af578 commit 5f311a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/contexts/Theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { createContext, useContext } from 'react';

import useLocalStorage from 'use-local-storage';

type IThemeContext = {
interface IThemeContext {
theme: string;
switchTheme: () => void;
};
}

const Theme = createContext({} as IThemeContext);

Expand Down
6 changes: 3 additions & 3 deletions src/contexts/Toast.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { createContext, useContext } from 'react';
import toast, { Toaster } from 'react-hot-toast';

type IToastProps = {
interface IToastProps {
toast: any;
};
}

const ToastContext = createContext<IToastProps>({} as any);
const ToastContext = createContext<IToastProps>({} as IToastProps);

export const ToastProvider = ({ children }: any) => (
<ToastContext.Provider value={{ toast }}>
Expand Down

0 comments on commit 5f311a2

Please sign in to comment.