Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
fix: correct Alert variant on SubmitErrorAlert (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
chambo-e authored Dec 21, 2022
1 parent 06b4de2 commit d8ff359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
pointer-events: none;
}
.cache-1ehs544-alertStyles {
.cache-1v4uk27-alertStyles {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
Expand All @@ -94,8 +94,8 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
flex-wrap: nowrap;
border-radius: 4px;
padding: 16px;
background-color: #ffefe6;
color: #cc4e18;
background-color: #ffe1e7;
color: #a6102d;
}
.cache-bqy7up-sizeStyles {
Expand Down Expand Up @@ -149,7 +149,7 @@ exports[`SubmitErrorAlert should display an alert when submitError is present 1`
</div>
</button>
<div
class="cache-1ehs544-alertStyles eenhiht2"
class="cache-1v4uk27-alertStyles eenhiht2"
>
<svg
class="cache-bqy7up-sizeStyles etwatq50"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SubmitErrorAlert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const SubmitErrorAlert = <FormValues,>({
<FormSpy<FormValues> subscription={{ submitError: true }}>
{({ submitError }) =>
submitError ? (
<Alert className={className} variant="warning">
<Alert className={className} variant="danger">
{submitError}
</Alert>
) : null
Expand Down

0 comments on commit d8ff359

Please sign in to comment.