set resource password and remove resource password from dashboard

This commit is contained in:
Milo Schwartz 2024-11-19 00:05:04 -05:00
parent ab6d59c163
commit cfce3dabb3
No known key found for this signature in database
10 changed files with 457 additions and 164 deletions

View file

@ -1,9 +1,14 @@
import { GetResourceAuthInfoResponse } from "@server/routers/resource";
import { GetResourceResponse } from "@server/routers/resource/getResource";
import { createContext } from "react";
interface ResourceContextType {
resource: GetResourceResponse;
authInfo: GetResourceAuthInfoResponse;
updateResource: (updatedResource: Partial<GetResourceResponse>) => void;
updateAuthInfo: (
updatedAuthInfo: Partial<GetResourceAuthInfoResponse>
) => void;
}
const ResourceContext = createContext<ResourceContextType | undefined>(