mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-18 19:06:38 +00:00
refactor contexts, format zod errors, and more refactoring
This commit is contained in:
@@ -3,9 +3,9 @@ import { createContext } from "react";
|
||||
|
||||
interface SiteContextType {
|
||||
site: GetSiteResponse | null;
|
||||
updateSite: (updatedSite: Partial<GetSiteResponse>) => Promise<void>;
|
||||
updateSite: (updatedSite: Partial<GetSiteResponse>) => void;
|
||||
}
|
||||
|
||||
const SiteContext = createContext<SiteContextType | undefined>(undefined);
|
||||
|
||||
export default SiteContext;
|
||||
export default SiteContext;
|
||||
|
||||
Reference in New Issue
Block a user