Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update ui #7

Closed
wants to merge 60 commits into from
Closed

feat: update ui #7

wants to merge 60 commits into from

Conversation

beyond009
Copy link

@beyond009 beyond009 commented Apr 22, 2024

Pull Request

Description

Related Issue

Closes SW-0000 MF-6063 MF-6064 MF-6067

Checklist

  • I have tested these changes locally.
  • I have reviewed the code changes.
  • I have added unit tests if applicable.

Copy link

vercel bot commented Apr 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stake-mask-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 9:06am

isConnected ? openAccountModal() : openConnectModal();
}}
>
{' '}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{' '}

@@ -17,7 +21,13 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
<body className={inter.className + ' relative'}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the classNames function or use template strings.


export default function Home() {
redirect('/stake');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export function StakeCard({ setIsOpen }: StakeCardProps) {
const { address } = useAccount();
const { data, isLoading, isError } = useQuery({
queryKey: ['stake'],
Copy link
Contributor

@swkatmask swkatmask May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
queryKey: ['stake'],
queryKey: ['stake', address],

should response to adderss

const [allowanceSet, setAllowanceSet] = useState(BigInt(0));

const { data: allowanceFetch } = useSuspenseQuery({
queryKey: ['allowance'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
queryKey: ['allowance'],
queryKey: ['allowance', address],

ditto

});

const { data: balance } = useQuery({
queryKey: ['balance'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
queryKey: ['balance'],
queryKey: ['balance', address],

ditto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants