diff --git a/resources/scripts/components/admin/nests/NestEditContainer.tsx b/resources/scripts/components/admin/nests/NestEditContainer.tsx index 803da829f..40760f328 100644 --- a/resources/scripts/components/admin/nests/NestEditContainer.tsx +++ b/resources/scripts/components/admin/nests/NestEditContainer.tsx @@ -1,3 +1,6 @@ +import CopyOnClick from '@/components/elements/CopyOnClick'; +import Input from '@/components/elements/Input'; +import Label from '@/components/elements/Label'; import React, { createContext, useContext, useEffect, useState } from 'react'; import { useRouteMatch } from 'react-router-dom'; import tw from 'twin.macro'; @@ -28,7 +31,7 @@ interface Values { description: string | null; } -const NestEditBox = () => { +const EditInformationContainer = () => { const { clearFlashes, clearAndAddHttpError } = useStoreActions((actions: Actions) => actions.flashes); const { nest, setNest } = useContext(Context); @@ -65,7 +68,7 @@ const NestEditBox = () => { { ({ isSubmitting, isValid }) => ( - +
@@ -101,6 +104,57 @@ const NestEditBox = () => { ); }; +const ViewDetailsContainer = () => { + const { nest } = useContext(Context); + + if (nest === undefined) { + return ( + <> + ); + } + + return ( + +
+
+
+ + + + +
+ +
+ + + + +
+ +
+ + + + +
+
+
+
+ ); +}; + const NestEditContainer = () => { const match = useRouteMatch<{ nestId?: string }>(); @@ -144,7 +198,10 @@ const NestEditContainer = () => { - +
+ + +
); };