diff --git a/src/components/Toaster.tsx b/src/components/Toaster.tsx
index a8ecf97a..78f688e1 100644
--- a/src/components/Toaster.tsx
+++ b/src/components/Toaster.tsx
@@ -1,35 +1,68 @@
'use client'
import { useRouter } from 'next/navigation'
import { toast as createToast, Slide, ToastContainer } from 'react-toastify'
+import classNames from 'classnames'
-import { Check, Warning } from 'components/Icons'
+import { CheckCircled, Cross, CrossCircled } from 'components/Icons'
+import { Text } from 'components/Text'
import useStore from 'store'
+import { Button } from './Button'
+
export default function Toaster() {
const enableAnimations = useStore((s) => s.enableAnimations)
const toast = useStore((s) => s.toast)
const router = useRouter()
if (toast) {
- if (toast.isError) {
- createToast.error(toast.message, {
- progressClassName: 'bg-loss',
- icon: (
-
-
-
- ),
- })
- } else {
- createToast.success(toast.message, {
- progressClassName: 'bg-profit',
- icon: (
-
-
-
- ),
- })
- }
+ const Msg = () => (
+
+
+
+
+ {toast.isError ? : }
+
+
+
+ {toast.isError ? 'Error' : 'Success'}
+
+
+
+
+ {toast.message}
+
+
+ }
+ variant='transparent'
+ className='w-2'
+ iconClassName={classNames('w-2 h-2', toast.isError ? 'text-error' : 'text-success')}
+ />
+
+
+ )
+
+ createToast(Msg, {
+ icon: false,
+ draggable: false,
+ closeOnClick: true,
+ progressClassName: classNames('h-[1px] bg-none', toast.isError ? 'bg-error' : 'bg-success'),
+ })
+
useStore.setState({ toast: null })
router.refresh()
}
@@ -38,12 +71,12 @@ export default function Toaster() {
)
}
diff --git a/src/components/Wallet/WalletConnectProvider.tsx b/src/components/Wallet/WalletConnectProvider.tsx
index eeb8764f..4b77fe9b 100644
--- a/src/components/Wallet/WalletConnectProvider.tsx
+++ b/src/components/Wallet/WalletConnectProvider.tsx
@@ -5,7 +5,7 @@ import { FC } from 'react'
import { Button } from 'components/Button'
import { CircularProgress } from 'components/CircularProgress'
-import { Close } from 'components/Icons'
+import { Cross } from 'components/Icons'
import { ENV, ENV_MISSING_MESSAGE } from 'constants/env'
type Props = {
@@ -41,12 +41,12 @@ export const WalletConnectProvider: FC
= ({ children }) => {
modalCloseButton: 'inline-block',
walletList: 'w-full',
wallet:
- 'flex bg-transparent p-2 w-full rounded-sm cursor-pointer transition duration-500 ease-in mb-2 hover:bg-primary',
+ 'flex bg-transparent p-2 w-full rounded-sm cursor-pointer transition ease-in mb-2 hover:bg-primary',
walletImage: 'w-10 h-10',
walletName: 'w-full text-lg',
walletDescription: 'w-full text-xs text-white/60 break-all',
}}
- closeIcon={ } iconClassName='h-2 w-2' color='tertiary' />}
+ closeIcon={ } iconClassName='h-2 w-2' color='tertiary' />}
renderLoader={() => (
diff --git a/tailwind.config.js b/tailwind.config.js
index 9051f915..e0676e8b 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -78,6 +78,8 @@ module.exports = {
axlusdc: '#478edc',
body: '#0D0012',
'body-dark': '#141621',
+ error: '#F97066',
+ 'error-bg': '#FDA29B',
grey: '#3a3c49',
'grey-dark': '#1a1c25',
'grey-highlight': '#4c4c4c',
@@ -95,6 +97,8 @@ module.exports = {
profit: '#41a4a9',
primary: '#FF625E',
secondary: '#FB9562',
+ success: '#32D583',
+ 'success-bg': '#6CE9A6',
'vote-against': '#eb9e49',
warning: '#c83333',
white: '#FFF',
@@ -106,7 +110,7 @@ module.exports = {
'2xs': ['10px', '16px'],
xs: ['12px', '16px'],
sm: ['14px', '18px'],
- base: ['15px', '20px'],
+ base: ['16px', '20px'],
lg: ['17px', '24px'],
xl: ['19px', '28px'],
'2xl': ['21px', '32px'],
@@ -154,6 +158,9 @@ module.exports = {
maxWidth: {
content: '1024px',
},
+ minWidth: {
+ 15: '60px',
+ },
screens: {
sm: '480px',
md: '720px',
@@ -169,6 +176,7 @@ module.exports = {
120000: '120000ms',
150000: '150000ms',
180000: '180000ms',
+ DEFAULT: '500ms',
},
transitionProperty: {
background: 'filter, -webkit-filter',
@@ -301,7 +309,7 @@ module.exports = {
letterSpacing: theme('letterSpacing.wider'),
},
'.text-base-caps': {
- fontSize: '15px',
+ fontSize: '16px',
lineHeight: '20px',
textTransform: 'uppercase',
fontWeight: theme('fontWeight.semibold'),