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

UI redesign part 4 #883

Draft
wants to merge 39 commits into
base: UI-redesign-part3
Choose a base branch
from
Draft

UI redesign part 4 #883

wants to merge 39 commits into from

Conversation

mvaivre
Copy link
Member

@mvaivre mvaivre commented Oct 11, 2024

No description provided.

Copy link

changeset-bot bot commented Oct 11, 2024

⚠️ No Changeset found

Latest commit: ac36054

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@nop33 nop33 left a comment

Choose a reason for hiding this comment

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

Just a quick pass over the diff!

I did not do any functional testing since it's still in draft mode.


export default RoundedCard

const RoundedCardContainer = styled.View`
Copy link
Member

Choose a reason for hiding this comment

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

The pattern we've used so far is RoundedCardStyled for this sort of components

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@@ -30,13 +30,14 @@ interface FooterMenuProps extends BottomTabBarProps {
style?: StyleProp<ViewStyle>
}

const isIos = Platform.OS === 'ios'
Copy link
Member

Choose a reason for hiding this comment

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

nit: we have this in other places too. Let's extract it to a util somewhere or just use Platform.OS === 'ios' which is short enough imo

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Comment on lines 93 to 100
useEffect(() => {
const fetchCopiedText = async () => {
const text = await getStringAsync()
setCopiedText(text)
}

fetchCopiedText()
})
Copy link
Member

Choose a reason for hiding this comment

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

The dependency array is missing.

Also, I started preferring this pattern, WDYT?

Suggested change
useEffect(() => {
const fetchCopiedText = async () => {
const text = await getStringAsync()
setCopiedText(text)
}
fetchCopiedText()
})
useEffect(() => {
getStringAsync().then(setCopiedText)
}, [])

Copy link
Member Author

Choose a reason for hiding this comment

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

I also like it better I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed to the pattern you proposed

@@ -97,6 +115,10 @@ const Input = <T extends InputValue>({
onBlur && onBlur(e)
}
Copy link
Member

Choose a reason for hiding this comment

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

Missing dependency array

Copy link
Member Author

Choose a reason for hiding this comment

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

Code has been removed

@@ -55,7 +61,8 @@ import { SessionRequestData } from '~/types/walletConnect'
import { showExceptionToast } from '~/utils/layout'
import { getTransactionAssetAmounts } from '~/utils/transactions'

interface WalletConnectSessionRequestModalProps<T extends SessionRequestData> extends ModalContentProps {
interface WalletConnectSessionRequestModalProps<T extends SessionRequestData> {
walletConnectClient: SignClient
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this accessible via useWalletConnectContext?

Copy link
Member

Choose a reason for hiding this comment

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

what a diff...

Have you tested all possible WC methods by using the example dapp?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's just code blocks moving around. No code changes.

import { DEFAULT_MARGIN } from '~/style/globalStyle'

interface BottomModalHeaderProps {
handleClose: () => void
Copy link
Member

Choose a reason for hiding this comment

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

we tend to call these props on... not handle...

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.

2 participants