mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 21:58:15 +02:00
refactor contexts, format zod errors, and more refactoring
This commit is contained in:
parent
2635443105
commit
2852d62258
83 changed files with 2150 additions and 1264 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue