Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Offline mode drawer PAY-1713 #4014

Merged

Conversation

nicoback2
Copy link
Contributor

@nicoback2
Copy link
Contributor Author

Note - re-used the drawer header from Share to Story drawer instead of following the Figma for now. Going to ask design if we're going to standardize the header soon.

@nicoback2 nicoback2 requested review from amendelsohn and a team September 5, 2023 15:59
Copy link
Contributor

@dylanjeffers dylanjeffers left a comment

Choose a reason for hiding this comment

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

excellent job! it's looking really clean

)

const handleSaveChanges = useCallback(() => {
if (isFavoritesMarkedForDownload) {
Copy link
Contributor

Choose a reason for hiding this comment

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

could maybe collapse the if else's into something a bit more explicit:
`if (isFavoritesMarkedForDownload && !isFavoritesOn) {...} else if (!isFavoritesMarkedForDownload && isFavoritesOn) {...} ? main idea being to make clear we do stuff when the value has changed

}, [dispatch, switchValue])

return (
<TouchableOpacity onPress={handlePressStatusIndicator}>
Copy link
Contributor

Choose a reason for hiding this comment

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

it might not work, but i wonder if we could use IconButton for this? the nice thing with that is it comes in with some built-in hitSlop to make it easier to press.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sadly we cannot because the "loading" indicator state is a rive component not an icon component. can add in a hitslop here if we run into issues pressing the button in qa!

Copy link
Contributor

Choose a reason for hiding this comment

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

nice yeah makes sense, and sounds like a plan :)

@audius-infra
Copy link
Collaborator

It looks like there may be some changes to native mobile code, which requires triggering a full app release. Please follow the instructions here: https://www.notion.so/audiusproject/When-to-bump-app-version-2644a8f772364a4d91f44abcba44ce0b?pvs=4. cc @nicoback2 @sliptype

@audius-infra
Copy link
Collaborator

Preview this change https://demo.audius.co/nkang--offline-mode-drawer

@nicoback2 nicoback2 merged commit 73eddce into nkang--feature-updated-library Sep 5, 2023
2 checks passed
@nicoback2 nicoback2 deleted the nkang--offline-mode-drawer branch September 5, 2023 23:25
nicoback2 added a commit that referenced this pull request Sep 8, 2023
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
@AudiusProject AudiusProject deleted a comment from linear bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants