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

fix: correct Alert variant on SubmitErrorAlert #594

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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