-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
18616df
commit 270cc2f
Showing
15 changed files
with
110 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { ReactNode } from 'react' | ||
|
||
import { Toasts } from '../toasts' | ||
|
||
type ModalScreenProps = { | ||
children: ReactNode | ||
} | ||
|
||
export const ModalScreen = (props: ModalScreenProps) => { | ||
const { children } = props | ||
return ( | ||
<> | ||
<Toasts /> | ||
{children} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './EditPlaylistScreen' | ||
export * from './EditPlaylistModalScreen' | ||
export * from './LegacyEditPlaylistScreen' | ||
export * from './CreatePlaylistScreen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './EditTrackScreen' | ||
export * from './EditExistingTrackScreen' | ||
export * from './EditTrackModalScreen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './TipArtistModal' | ||
export * from './TipArtistModalScreen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { UploadScreen } from './screens' | ||
export { UploadModalScreen } from './screens' |
36 changes: 36 additions & 0 deletions
36
packages/mobile/src/screens/upload-screen/screens/UploadModalScreen.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack' | ||
|
||
import { ModalScreen } from 'app/components/core' | ||
|
||
import { useAppScreenOptions } from '../../app-screen/useAppScreenOptions' | ||
|
||
import { CompleteTrackScreen } from './CompleteTrackScreen' | ||
import { SelectTrackScreen } from './SelectTrackScreen' | ||
import { UploadCompleteScreen } from './UploadCompleteScreen' | ||
import { UploadingTracksScreen } from './UploadingTracksScreen' | ||
|
||
const Stack = createNativeStackNavigator() | ||
|
||
const screenOptionOverrides = { headerRight: () => null } | ||
|
||
export const UploadModalScreen = () => { | ||
const screenOptions = useAppScreenOptions(screenOptionOverrides) | ||
|
||
return ( | ||
<ModalScreen> | ||
<Stack.Navigator screenOptions={screenOptions}> | ||
<Stack.Screen name='SelectTrack' component={SelectTrackScreen} /> | ||
<Stack.Screen | ||
name='CompleteTrack' | ||
component={CompleteTrackScreen} | ||
options={{ headerShown: false, gestureEnabled: false }} | ||
/> | ||
<Stack.Screen | ||
name='UploadingTracks' | ||
component={UploadingTracksScreen} | ||
/> | ||
<Stack.Screen name='UploadComplete' component={UploadCompleteScreen} /> | ||
</Stack.Navigator> | ||
</ModalScreen> | ||
) | ||
} |
29 changes: 0 additions & 29 deletions
29
packages/mobile/src/screens/upload-screen/screens/UploadScreen.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export * from './UploadScreen' | ||
export * from './UploadModalScreen' | ||
export * from './CompleteTrackScreen' | ||
export * from './UploadingTracksScreen' | ||
export * from './UploadCompleteScreen' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { WalletConnectStack as WalletConnectScreen } from './WalletConnectStack' | ||
export { WalletConnectModalScreen } from './WalletConnectModalScreen' | ||
export { WalletConnectProvider } from './WalletConnectProvider' |