Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fixed toast ui #862

Merged
merged 5 commits into from
Jun 27, 2023
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
1 change: 1 addition & 0 deletions dashboard/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
/package-lock.json

# testing
/coverage
Expand Down
12 changes: 6 additions & 6 deletions dashboard/components/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ function Toast({ hasError, title, message, dismissToast }: ToastProp) {
}
)}
></div>
<div className="flex items-center gap-4">
<div className="flex items-start">
<div
className={classNames({
'text-error-600': hasError,
'text-success-600': !hasError
'mt-4 text-error-600 ': hasError,
'mt-4 text-success-600': !hasError
})}
>
{hasError ? (
Expand All @@ -42,10 +42,10 @@ function Toast({ hasError, title, message, dismissToast }: ToastProp) {
<CheckIcon width={24} height={24} />
)}
</div>
<div>
<p className="text-sm font-medium">{title}</p>
<div className="p-3">
<p className="pb-2 text-sm font-medium">{title}</p>
<p
className="text-sm text-black-900/60"
className="text-sm text-black-900/60 "
dangerouslySetInnerHTML={{ __html: message }}
/>
</div>
Expand Down
Loading