refactor[darkContext]: Move type darkContextType to types directorie
This commit is contained in:
parent
a2ebec1a87
commit
2c8b0e1aaf
2 changed files with 6 additions and 5 deletions
|
|
@ -1,9 +1,5 @@
|
||||||
import { createContext, useEffect, useState } from "react";
|
import { createContext, useEffect, useState } from "react";
|
||||||
|
import { darkContextType } from "../types/typesContext";
|
||||||
type darkContextType = {
|
|
||||||
dark: {};
|
|
||||||
setDark: (newState: {}) => void;
|
|
||||||
};
|
|
||||||
|
|
||||||
const initialValue = {
|
const initialValue = {
|
||||||
dark: {},
|
dark: {},
|
||||||
|
|
|
||||||
|
|
@ -38,3 +38,8 @@ export type alertContextType = {
|
||||||
clearNotificationList: () => void;
|
clearNotificationList: () => void;
|
||||||
removeFromNotificationList: (index: string) => void;
|
removeFromNotificationList: (index: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type darkContextType = {
|
||||||
|
dark: {};
|
||||||
|
setDark: (newState: {}) => void;
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue