From 5f311a2758edb19a79c30f7cb82b5943b5912674 Mon Sep 17 00:00:00 2001 From: ialexanderbrito Date: Wed, 30 Mar 2022 00:48:36 -0300 Subject: [PATCH] fix: imports --- src/contexts/Theme.tsx | 4 ++-- src/contexts/Toast.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/contexts/Theme.tsx b/src/contexts/Theme.tsx index e3f5115..3f2c75c 100644 --- a/src/contexts/Theme.tsx +++ b/src/contexts/Theme.tsx @@ -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); diff --git a/src/contexts/Toast.tsx b/src/contexts/Toast.tsx index 14635da..6115c9f 100644 --- a/src/contexts/Toast.tsx +++ b/src/contexts/Toast.tsx @@ -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({} as any); +const ToastContext = createContext({} as IToastProps); export const ToastProvider = ({ children }: any) => (