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

digit-recognition frontend #3

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

vraja-nayaka
Copy link
Collaborator

No description provided.

…ation/gear.exe-dapps into vt-digit-recognition-frontend
@vraja-nayaka vraja-nayaka changed the title Draft: digit-recognition frontend digit-recognition frontend Jan 24, 2025
"@": path.resolve(__dirname, "src"),
},
},
plugins: [react(), svgr()],

Choose a reason for hiding this comment

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

Add vite-plugin-checker please to display TS and ESlint errors during development, otherwise a lot of things get missed.

/**
* Hook that tracks the state of a CSS media query.
*/
export function useMedia(query: string) {

Choose a reason for hiding this comment

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

I'm against matching queries in JS, quite a lot of complexity, performance impact and sometimes unpredictable behavior. CSS media queries are much more reliable.

@@ -0,0 +1,15 @@
import type * as React from "react"

export function mergeRefs<T = any>(

Choose a reason for hiding this comment

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

Do we need this?


function App() {
const ethAccount = useAccount();
const isConnected = Boolean(ethAccount.chain);

Choose a reason for hiding this comment

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

I guess we should check if connected chain is the one we need.

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.

4 participants