mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
set resource password and remove resource password from dashboard
This commit is contained in:
parent
ab6d59c163
commit
cfce3dabb3
10 changed files with 457 additions and 164 deletions
|
@ -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>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue