Skip to content

Commit

Permalink
Add success message
Browse files Browse the repository at this point in the history
  • Loading branch information
Onitoxan committed Aug 19, 2024
1 parent a457901 commit 304a946
Show file tree
Hide file tree
Showing 11 changed files with 375 additions and 302 deletions.
7 changes: 4 additions & 3 deletions apps/hpc-ftsadmin/src/app/components/merge-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ const MergeModal = (props: MergeModalProps) => {
</Box>

<Box sx={!isFirstStep ? tw`w-full` : tw`hidden`}>
<C.ErrorAlert
setError={setError}
error={
<C.MessageAlert
setMessage={setError}
message={
error
? parseEntityString(
t.t(
Expand All @@ -328,6 +328,7 @@ const MergeModal = (props: MergeModalProps) => {
)
: undefined
}
severity="error"
/>
<ConfirmationText lang={lang} {...confirmValues} />
<Box sx={tw`flex justify-end gap-x-4`}>
Expand Down
11 changes: 4 additions & 7 deletions apps/hpc-ftsadmin/src/app/components/organization-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,10 @@ export const OrganizationForm = ({ initialValues, id, load }: Props) => {
>
{({ initialValues }) => (
<Form>
<C.ErrorAlert
setError={
setError as React.Dispatch<
React.SetStateAction<string | undefined>
>
}
error={parseError(error)}
<C.MessageAlert
setMessage={setError}
message={parseError(error)}
severity="error"
/>
<C.TextFieldWrapper
label={t.t(
Expand Down
Loading

0 comments on commit 304a946

Please sign in to comment.