refactor[darkContext]: Move type darkContextType to types directorie

This commit is contained in:
Igor Carvalho 2023-07-19 17:27:09 -03:00
commit 2c8b0e1aaf
2 changed files with 6 additions and 5 deletions

View file

@ -1,9 +1,5 @@
import { createContext, useEffect, useState } from "react";
type darkContextType = {
dark: {};
setDark: (newState: {}) => void;
};
import { darkContextType } from "../types/typesContext";
const initialValue = {
dark: {},

View file

@ -38,3 +38,8 @@ export type alertContextType = {
clearNotificationList: () => void;
removeFromNotificationList: (index: string) => void;
};
export type darkContextType = {
dark: {};
setDark: (newState: {}) => void;
};