diff --git a/components/Button.tsx b/components/Button.tsx index 9b15b694..f4073308 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -12,7 +12,7 @@ const Button = React.forwardRef( - @@ -64,7 +64,7 @@ const CreditManager = () => { ) : ( <> -
+
Total Position:
{formatCurrency(totalPosition)}
@@ -79,7 +79,7 @@ const CreditManager = () => {
Loading...
) : ( <> -
+
Asset
Value
Size
diff --git a/components/Navigation.tsx b/components/Navigation.tsx index a6b8bbe4..773a778a 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -58,13 +58,13 @@ const Navigation = () => { return (
{/* Main navigation bar */} -
+
mars -
+
{navItems.map((item, index) => ( {item.label} @@ -74,13 +74,13 @@ const Navigation = () => {
{/* Sub navigation bar */} -
+
{firstCreditAccounts.map((account) => (
setSelectedAccount(account)} @@ -91,13 +91,13 @@ const Navigation = () => { {restCreditAccounts.length > 0 && ( -
+
More
- -
+ +
{restCreditAccounts.map((account) => (
{ )} -
+
Manage
- + {({ close }) => ( -
+
{ @@ -158,13 +158,13 @@ const Navigation = () => {
-
+

{formatCurrency(2500)}

Lvg
Risk
diff --git a/components/ProgressBar.tsx b/components/ProgressBar.tsx index 2276c233..73791897 100644 --- a/components/ProgressBar.tsx +++ b/components/ProgressBar.tsx @@ -19,16 +19,16 @@ const ProgressBar = ({ value }: Props) => { const percentageNewValue = `${(newValue * 100).toFixed(0)}%` return ( -
+
-
+
{percentageValue} {percentageNewValue} diff --git a/components/SearchInput.tsx b/components/SearchInput.tsx index aac97781..0e56f169 100644 --- a/components/SearchInput.tsx +++ b/components/SearchInput.tsx @@ -10,13 +10,13 @@ const SearchInput = () => ( strokeLinejoin="round" strokeWidth="2" viewBox="0 0 24 24" - className="w-6 h-6" + className="h-6 w-6" >
diff --git a/components/Spinner.tsx b/components/Spinner.tsx index b3e210dc..d6cd64c5 100644 --- a/components/Spinner.tsx +++ b/components/Spinner.tsx @@ -3,7 +3,7 @@ import React from 'react' const Spinner = () => { return ( { - const address = useWalletStore((state) => state.address) - const actions = useWalletStore((state) => state.actions) + const address = useWalletStore((s) => s.address) + const actions = useWalletStore((s) => s.actions) const { data } = useTokenBalance() @@ -22,14 +22,14 @@ const WalletPopover = ({ children }: { children: React.ReactNode }) => { {children} - -
-
+ +
+
token

{chain.stakeCurrency.coinDenom}{' '} - {data?.toFixed(2)} + {data?.toFixed(2)}

{address}

-

Create Credit Account (Mint NFT)

+

Create Credit Account (Mint NFT)

-

Get all Credit Accounts

+

Get all Credit Accounts

-

Borrow OSMO

+

Borrow OSMO

setBorrowAmount(e.target.valueAsNumber)} /> -
@@ -305,7 +305,7 @@ const Home: NextPage = () => {
All Tokens
-

- {allTokens.length} total

+

- {allTokens.length} total

{allTokens.map((token) => (

{token}

@@ -316,7 +316,7 @@ const Home: NextPage = () => { <>
Your Tokens
-

- {walletTokens.length} total

+

- {walletTokens.length} total

{walletTokens.map((token) => (

{token}

@@ -324,7 +324,7 @@ const Home: NextPage = () => { )}
- {error &&
{error}
} + {error &&
{error}
} {isLoading && (
diff --git a/pages/trade.tsx b/pages/trade.tsx index 51e0d7ad..14a352af 100644 --- a/pages/trade.tsx +++ b/pages/trade.tsx @@ -4,7 +4,7 @@ import Container from 'components/Container' const Trade = () => { return (
-
+
Graph/Tradingview Module
Buy/Sell module diff --git a/yarn.lock b/yarn.lock index ca77083b..ff8b71f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4176,6 +4176,16 @@ prelude-ls@^1.2.1: resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prettier-plugin-tailwindcss@^0.1.13: + version "0.1.13" + resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.1.13.tgz#ca1071361dc7e2ed5d95a2ee36825ce45f814942" + integrity sha512-/EKQURUrxLu66CMUg4+1LwGdxnz8of7IDvrSLqEtDqhLH61SAlNNUSr90UTvZaemujgl3OH/VHg+fyGltrNixw== + +prettier@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" + integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== + process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz"