Handle website delete. Added response helper functions.

This commit is contained in:
Mike Cao committed 2020-08-07 17:19:42 -07:00
1 parent 0a411a9ad6
commit c4b75e4aec
31 files changed
+314 -96

No files matched your search

+3
View File
@@ -7,6 +7,7 @@ export default function Button({
type = 'button',
icon,
size,
variant,
children,
className,
onClick = () => {},
@@ -17,6 +18,8 @@ export default function Button({
className={classNames(styles.button, className, {
[styles.small]: size === 'S',
[styles.large]: size === 'L',
[styles.action]: variant === 'action',
[styles.danger]: variant === 'danger',
})}
onClick={onClick}
>
+18
View File
@@ -26,3 +26,21 @@
.large {
font-size: var(--font-size-large);
}
.action {
color: var(--gray50) !important;
background: var(--gray900) !important;
}
.action:hover {
background: var(--gray800) !important;
}
.danger {
color: var(--gray50) !important;
background: var(--red500) !important;
}
.danger:hover {
background: var(--red400) !important;
}