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: new wallet flow for native #8597

Merged
merged 37 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1133808
[skip ci] wip: new wallet flow for native
gomesalexandre Jan 15, 2025
6da6baa
[skip ci] feat: handlers
gomesalexandre Jan 15, 2025
d7b51a1
feat: stopping point
gomesalexandre Jan 16, 2025
0797e59
Merge branch 'develop' into feat_new_wallet_flow_native
gomesalexandre Jan 16, 2025
01142ec
[skip ci] chore: one too deep on the cleanup
gomesalexandre Jan 16, 2025
40ec15c
feat: progression
gomesalexandre Jan 16, 2025
5485c88
fix: routing shenanigans
gomesalexandre Jan 16, 2025
1f3882b
fix: more routing shenanigans
gomesalexandre Jan 16, 2025
f2ce7ab
feat: missing routes
gomesalexandre Jan 16, 2025
718dc3a
fix: styles
gomesalexandre Jan 16, 2025
8110223
fix: more style fixes
gomesalexandre Jan 16, 2025
4c83aa9
[skip ci] wip: more wire more up
gomesalexandre Jan 16, 2025
27cf208
fix: routing
gomesalexandre Jan 16, 2025
9a1ea6a
feat: rm disgusting iiafe
gomesalexandre Jan 16, 2025
956f522
chore: trigger CI
gomesalexandre Jan 16, 2025
b8a2e8a
fix: lint
gomesalexandre Jan 16, 2025
c910f7f
fix: light mode things
gomesalexandre Jan 16, 2025
6d0a12e
feat: less aggressive light mode
gomesalexandre Jan 16, 2025
489ecb7
fix: mobile things
gomesalexandre Jan 16, 2025
ae6dc60
fix: lint
gomesalexandre Jan 16, 2025
5838748
feat: progress
gomesalexandre Jan 16, 2025
b95c538
fix: tests with flag on
gomesalexandre Jan 16, 2025
2e8d382
feat: more progress more ion
gomesalexandre Jan 16, 2025
17adcab
feat: add divider
gomesalexandre Jan 16, 2025
6830ce4
fix: scrolly bits
gomesalexandre Jan 16, 2025
f60cafc
feat: truncate long-ass wallet names
gomesalexandre Jan 16, 2025
50cfde3
feat: slightly adjust styles
gomesalexandre Jan 16, 2025
e945fcb
feat: almost there
gomesalexandre Jan 16, 2025
d9f739c
Merge branch 'develop' into feat_new_wallet_flow_native
gomesalexandre Jan 16, 2025
381c8a2
feat: here we fuarking go
gomesalexandre Jan 16, 2025
1604511
feat: cleanup
gomesalexandre Jan 16, 2025
84191d7
feat: more cleanup
gomesalexandre Jan 16, 2025
c46c1ee
feat: more cleanup
gomesalexandre Jan 16, 2025
7848539
feat: last cleanup i swear
gomesalexandre Jan 16, 2025
f7b4b16
Revert "feat: last cleanup i swear"
gomesalexandre Jan 16, 2025
52ae673
Merge branch 'develop' into feat_new_wallet_flow_native
NeOMakinG Jan 17, 2025
3234de0
feat: extract hdwalletNativeVaultsList queryKey / queryFn
gomesalexandre Jan 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[skip ci] feat: handlers
gomesalexandre committed Jan 15, 2025
commit 6da6baa6a8592c00556563a2d5a269104e963d3a
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
import { Box, Button, Flex, Text as CText, useColorModeValue } from '@chakra-ui/react'
import { useCallback } from 'react'
import { useTranslate } from 'react-polyglot'
import { useHistory } from 'react-router-dom'
import { FoxIcon } from 'components/Icons/FoxIcon'
import { Text } from 'components/Text'
import { NativeWalletRoutes } from 'context/WalletProvider/types'

export const NativeStart = () => {
const translate = useTranslate()
const history = useHistory()

const headingColor = useColorModeValue('gray.800', 'whiteAlpha.800')
const bodyColor = useColorModeValue('gray.600', 'whiteAlpha.600')
const keystoreBgColor = useColorModeValue('blackAlpha.100', 'whiteAlpha.100')
const mainTextColor = useColorModeValue('gray.700', 'whiteAlpha.800')

const handleCreateClick = useCallback(() => console.log('TODO: handle create wallet'), [])
const handleImportClick = useCallback(() => console.log('TODO: handle import wallet'), [])
const handleCreateClick = useCallback(() => history.push(NativeWalletRoutes.Create), [history])
const handleImportClick = useCallback(
() => history.push(NativeWalletRoutes.ImportSelect),
[history],
)
const handleImportKeystoreClick = useCallback(
() => console.log('TODO: handle import from keystore'),
[],
() => history.push(NativeWalletRoutes.ImportKeystore),
[history],
)

return (