Settings style (#808)

This commit is contained in:
Carlos Valente
2024-03-09 10:56:14 +01:00
committed by GitHub
parent ad71793cf3
commit 78b386742e
10 changed files with 170 additions and 152 deletions
@@ -51,6 +51,7 @@ export default function ManageProjects() {
const handleCloseForm = () => {
setIsCreatingProject(false);
};
return (
<Panel.Section>
<Input
@@ -11,7 +11,7 @@ import * as Panel from '../PanelUtils';
import style from './ProjectPanel.module.scss';
export default function ProjectData() {
const { data, refetch } = useProjectData();
const { data, status, refetch } = useProjectData();
const {
handleSubmit,
@@ -45,9 +45,13 @@ export default function ProjectData() {
}
};
// populate with new data if we get an update
const onReset = () => {
reset(data);
};
const isLoading = status === 'pending';
return (
<Panel.Section as='form' onSubmit={handleSubmit(onSubmit)}>
<Panel.Card>
@@ -70,6 +74,7 @@ export default function ProjectData() {
</Panel.SubHeader>
<Panel.Divider />
<Panel.Section>
<Panel.Loader isLoading={isLoading} />
<label>
Project title
<Input