mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 09:26:40 +00:00
refactor contexts, format zod errors, and more refactoring
This commit is contained in:
@@ -3,9 +3,11 @@ import { createContext } from "react";
|
||||
|
||||
interface ResourceContextType {
|
||||
resource: GetResourceResponse | null;
|
||||
updateResource: (updatedResource: Partial<GetResourceResponse>) => Promise<void>;
|
||||
updateResource: (updatedResource: Partial<GetResourceResponse>) => void;
|
||||
}
|
||||
|
||||
const ResourceContext = createContext<ResourceContextType | undefined>(undefined);
|
||||
const ResourceContext = createContext<ResourceContextType | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
export default ResourceContext;
|
||||
export default ResourceContext;
|
||||
|
||||
Reference in New Issue
Block a user