diff --git a/public/images/account.png b/public/images/account.png
new file mode 100644
index 00000000..30d5b51a
Binary files /dev/null and b/public/images/account.png differ
diff --git a/public/images/account.webp b/public/images/account.webp
new file mode 100644
index 00000000..1b3784c3
Binary files /dev/null and b/public/images/account.webp differ
diff --git a/public/images/create-account-bg.png b/public/images/create-account-bg.png
deleted file mode 100644
index 2cf5abcc..00000000
Binary files a/public/images/create-account-bg.png and /dev/null differ
diff --git a/public/images/create-account-bg.webp b/public/images/create-account-bg.webp
deleted file mode 100644
index 40f35f3b..00000000
Binary files a/public/images/create-account-bg.webp and /dev/null differ
diff --git a/public/images/delete-account-bg.png b/public/images/delete-account-bg.png
deleted file mode 100644
index 74a0070d..00000000
Binary files a/public/images/delete-account-bg.png and /dev/null differ
diff --git a/public/images/delete-account-bg.webp b/public/images/delete-account-bg.webp
deleted file mode 100644
index b5aa99c8..00000000
Binary files a/public/images/delete-account-bg.webp and /dev/null differ
diff --git a/public/images/fund-bg.png b/public/images/fund-bg.png
deleted file mode 100644
index 263165e7..00000000
Binary files a/public/images/fund-bg.png and /dev/null differ
diff --git a/public/images/fund-bg.webp b/public/images/fund-bg.webp
deleted file mode 100644
index 49600e63..00000000
Binary files a/public/images/fund-bg.webp and /dev/null differ
diff --git a/src/components/Account/AccountNavigation.tsx b/src/components/Account/AccountNavigation.tsx
index a613960f..f706ff06 100644
--- a/src/components/Account/AccountNavigation.tsx
+++ b/src/components/Account/AccountNavigation.tsx
@@ -1,5 +1,6 @@
'use client'
+import classNames from 'classnames'
import { useRouter } from 'next/navigation'
import { useState } from 'react'
@@ -34,8 +35,13 @@ export const AccountNavigation = () => {
const [showMenu, setShowMenu] = useState(false)
+ const [createAccount, setCreateAccount] = useState(false)
+
async function createAccountHandler() {
+ setShowMenu(true)
+ setCreateAccount(true)
const accountId = await createCreditAccount({ fee: hardcodedFee })
+ setCreateAccount(false)
if (!accountId) return
router.push(`/wallets/${params.wallet}/accounts/${accountId}`)
}
@@ -53,115 +59,136 @@ export const AccountNavigation = () => {
{creditAccounts === null ? (
) : (
- <>
- {' '}
- {hasCreditAccounts ? (
-
-
}
- onClick={() => setShowMenu(!showMenu)}
- hasFocus={showMenu}
- hasSubmenu
- >
-
{accountSelected ? `Account ${selectedAccount}` : 'Select Account'}
-
-
- {accountSelected && (
-
-
- Manage Account {selectedAccount}
-
-
- }
- onClick={() => {
- useStore.setState({ fundAccountModal: true })
- setShowMenu(false)
- }}
- />
- }
- text='Withdraw'
- onClick={() => {
- useStore.setState({ withdrawModal: true })
- setShowMenu(false)
- }}
- />
-
-
-
{
- setShowMenu(false)
- createAccountHandler()
- }}
- leftIcon={ }
- />
- {
- setShowMenu(false)
- deleteAccountHandler()
- }}
- leftIcon={ }
- />
- {
- setShowMenu(false)
- /* TODO: add Transfer Balance Function */
- }}
- leftIcon={ }
- />
-
-
- )}
- {creditAccounts.length > 1 && (
-
-
- Select Account
-
- {creditAccounts.map((account) =>
- selectedAccount === account ? null : (
- {
- router.push(`/wallets/${params.wallet}/accounts/${account}`)
- setShowMenu(!showMenu)
- }}
- text={`Account ${account}`}
- />
- ),
- )}
-
- )}
-
-
- ) : (
- } color='tertiary'>
- Create Account
-
- )}
- >
+
+
setShowMenu(!showMenu) : createAccountHandler}
+ leftIcon={hasCreditAccounts ? : }
+ color={hasCreditAccounts ? 'tertiary' : 'primary'}
+ hasFocus={showMenu}
+ hasSubmenu={hasCreditAccounts}
+ >
+ {hasCreditAccounts
+ ? accountSelected
+ ? `Account ${selectedAccount}`
+ : 'Select Account'
+ : 'Create Account'}
+
+
+
+ {!hasCreditAccounts && (
+
+
+ Create Credit Account
+
+
+ Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
+ tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
+ vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
+ no sea takimata sanctus est Lorem ipsum dolor sit amet.
+
+
+
+ )}
+ {accountSelected && (
+
+
+ Manage Account {selectedAccount}
+
+
+ }
+ onClick={() => {
+ useStore.setState({ fundAccountModal: true })
+ setShowMenu(false)
+ }}
+ />
+ }
+ text='Withdraw'
+ onClick={() => {
+ useStore.setState({ withdrawModal: true })
+ setShowMenu(false)
+ }}
+ />
+
+
+
{
+ setShowMenu(false)
+ createAccountHandler()
+ }}
+ leftIcon={ }
+ />
+ {
+ setShowMenu(false)
+ deleteAccountHandler()
+ }}
+ leftIcon={ }
+ />
+ {
+ setShowMenu(false)
+ /* TODO: add Transfer Balance Function */
+ }}
+ leftIcon={ }
+ />
+
+
+ )}
+ {creditAccounts.length > 1 && (
+
+
+ Select Account
+
+ {creditAccounts.map((account) => {
+ return selectedAccount === account ? null : (
+ {
+ router.push(`/wallets/${params.wallet}/accounts/${account}`)
+ setShowMenu(!showMenu)
+ }}
+ text={`Account ${account}`}
+ />
+ )
+ })}
+
+ )}
+
+
)}
>
)
diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index bd0ba49d..ebaba871 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -24,7 +24,8 @@ interface Props {
}
export const buttonColorClasses = {
- primary: 'gradient-primary-to-secondary hover:bg-white/20 active:bg-white/40 focus:bg-white/20',
+ primary:
+ 'font-bold gradient-primary-to-secondary hover:bg-white/20 active:bg-white/40 focus:bg-white/20',
secondary:
'border border-white/30 bg-transparent hover:bg-white/20 active:bg-white/40 focus:bg-white/20',
tertiary: 'bg-white/10 hover:bg-white/20 active:bg-white/40 focus:bg-white/20',
diff --git a/src/components/Overlay/Overlay.tsx b/src/components/Overlay/Overlay.tsx
index b6d27b19..f57f0d2e 100644
--- a/src/components/Overlay/Overlay.tsx
+++ b/src/components/Overlay/Overlay.tsx
@@ -18,7 +18,8 @@ export const Overlay = ({ children, content, className, show, setShow }: Props)
<>
diff --git a/src/components/Wallet/ConnectedButton.tsx b/src/components/Wallet/ConnectedButton.tsx
index 1fc5ed02..eb91942d 100644
--- a/src/components/Wallet/ConnectedButton.tsx
+++ b/src/components/Wallet/ConnectedButton.tsx
@@ -74,7 +74,7 @@ export default function ConnectedButton() {
{network?.chainId !== ChainInfoID.Osmosis1 && (
diff --git a/tailwind.config.js b/tailwind.config.js
index 49848dc1..9051f915 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -44,9 +44,7 @@ module.exports = {
sticky: '50px',
},
backgroundImage: {
- 'fund-modal': 'url(/images/fund-bg.webp), url(/images/fund-bg.png)',
- 'delete-modal': 'url(/images/delete-account-bg.webp), url(/images/delete-account-bg.png)',
- 'create-modal': 'url(/images/create-account-bg.webp), url(/images/create-account-bg.png)',
+ account: 'url(/images/account.webp), url(/images/account.png)',
},
backgroundSize: {
desktop: '100% auto',