diff --git a/frontend/src/pages/settings/settings.tsx b/frontend/src/features/projects/pages/ProjectSettings.tsx similarity index 60% rename from frontend/src/pages/settings/settings.tsx rename to frontend/src/features/projects/pages/ProjectSettings.tsx index c53c9ab..ff75ec3 100644 --- a/frontend/src/pages/settings/settings.tsx +++ b/frontend/src/features/projects/pages/ProjectSettings.tsx @@ -1,11 +1,12 @@ import { ProjectMembersInner, ProjectMembersInnerTypeEnum } from 'api'; import CustomButton from 'components/button'; -import CopyInput from 'components/copyInput'; +import { CopyInput, TextInput } from 'components/inputs'; +import { OutlineButton } from 'components/buttons'; import Table from 'components/table'; -import TextInput from 'components/textInput'; +import { MembersTable } from 'components/tables'; import { useProjectsStore } from 'features/projects/stores/useProjectsStore'; import { MdAdd } from 'react-icons/md'; -import useSettings from './useSettings'; +import useSettings from '../hooks/useProjectSettings'; const headers = [ { propertyName: 'email', displayName: 'Email' }, @@ -53,7 +54,7 @@ const Settings = () => { {(() => { switch (selectedProject.state) { case 'loading': - //TODO: Better loading experience + //TODO: Better loading experience return
Loading...
; // Just an example case 'hasData': { console.log('members', selectedProject.data.members); @@ -61,49 +62,43 @@ const Settings = () => { return (
-
-

Project Settings

-

Customise your project settings here.

-
-
-

Members

- - } - onClick={() => console.log('button clicked')} - /> - -
-

Project API Key

- +
+
+

Members

+

Manage the members of your project.

+
+
-
-

Project ID

-

- You can use this to reference your project in the API. -

- + + +
+
+

Danger Zone

+

Delete your project and all associated data.

+
+
); } case 'hasError': - //TODO: Toast error message and navigate away (probs to / route) + //TODO: Toast error message and navigate away (probs to / route) return
Error encountered
; // Render the error case 'hasDataWithError': return
Data loaded but with error
; // Handle this case as well