スナックバーのデザインを修正
This commit is contained in:
parent
418154fd33
commit
a914f80a3c
@ -42,17 +42,21 @@ const Snackbar: React.FC<SnackbarProps> = (props) => {
|
||||
return (
|
||||
<div className={`${styles.snackbar} ${isAlert} ${isShow}`}>
|
||||
{level === "error" ? (
|
||||
<img src={reportWhite} className={styles.snackbarIcon} alt="check" />
|
||||
) : (
|
||||
<img
|
||||
src={checkCircleWhite}
|
||||
className={styles.snackbarIcon}
|
||||
alt="check"
|
||||
alt="report"
|
||||
/>
|
||||
) : (
|
||||
<img src={reportWhite} className={styles.snackbarIcon} alt="report" />
|
||||
)}
|
||||
<p className={styles.txNormal}>{message}</p>
|
||||
{level === "error" && (
|
||||
<button type="button" onClick={onCloseSnackbar}>
|
||||
<button
|
||||
style={{ marginLeft: "auto" }}
|
||||
type="button"
|
||||
onClick={onCloseSnackbar}
|
||||
>
|
||||
<img
|
||||
src={closeWhite}
|
||||
className={styles.snackbarIconClose}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user