Skip to content

Commit

Permalink
fix error and spinner layout
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Sep 16, 2024
1 parent df22d44 commit 7bf6be1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions catalog/app/containers/Admin/Buckets/Buckets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,12 @@ function Hint({ children }: HintProps) {
)
}

const useInlineActionsStyles = M.makeStyles({
error: {
const useInlineActionsStyles = M.makeStyles((t) => ({
helper: {
flexGrow: 1,
marginLeft: t.spacing(6),
},
})
}))

interface InlineActionsProps {
form: FF.FormApi
Expand All @@ -630,7 +631,7 @@ function InlineActions({ form, onCancel }: InlineActionsProps) {
<>
{state.submitFailed && (
<Form.FormError
className={classes.error}
className={classes.helper}
error={state.error || state.submitError}
errors={{
unexpected: 'Something went wrong',
Expand All @@ -640,12 +641,12 @@ function InlineActions({ form, onCancel }: InlineActionsProps) {
margin="none"
/>
)}
{state.submitting && (
{true && (
<Delay>
{() => (
<M.Box flexGrow={1} display="flex" pl={2}>
<div className={classes.helper}>
<M.CircularProgress size={24} />
</M.Box>
</div>
)}
</Delay>
)}
Expand Down

0 comments on commit 7bf6be1

Please sign in to comment.