Skip to content

Commit

Permalink
fix/context/type
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunGovil committed Jan 26, 2023
1 parent 64aa15b commit 36c83a8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion context/NotificationContext.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import React, { useState, createContext, useMemo } from "react";

export const Notification = createContext();
interface NotificationContextValue {
notification: boolean;
handleNotification: () => void;
}

export const Notification = createContext<NotificationContextValue>({
notification: false,
handleNotification: () => {},
});

const NotificationContext = ({ children }: any) => {
const [notification, setNotification] = useState(false);
Expand Down

1 comment on commit 36c83a8

@vercel
Copy link

@vercel vercel bot commented on 36c83a8 Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cmdr – ./

cmdr-git-main-arungovil.vercel.app
cmdr.vercel.app
cmdr-arungovil.vercel.app

Please sign in to comment.