-
Notifications
You must be signed in to change notification settings - Fork 111
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
1f70aa4
commit 614863c
Showing
5 changed files
with
60 additions
and
4 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
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,20 @@ | ||
import { FeatureFlags } from '@audius/common' | ||
|
||
import { useFlag } from 'hooks/useRemoteConfig' | ||
|
||
import UploadPageLegacy from './UploadPageLegacy' | ||
import UploadPageNew from './UploadPageNew' | ||
|
||
export const UploadPage = (props: any) => { | ||
const { isEnabled: isRedesignEnabled } = useFlag( | ||
FeatureFlags.UPLOAD_REDESIGN_ENABLED | ||
) | ||
|
||
return isRedesignEnabled ? ( | ||
<UploadPageNew {...props} /> | ||
) : ( | ||
<UploadPageLegacy {...props} /> | ||
) | ||
} | ||
|
||
export default UploadPage |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.upload { | ||
text-align: left; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} |
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,25 @@ | ||
import { UploadType } from '@audius/common' | ||
|
||
import Header from 'components/header/desktop/Header' | ||
import Page from 'components/page/Page' | ||
|
||
import styles from './UploadPage.module.css' | ||
|
||
type UploadPageProps = { | ||
uploadType: UploadType | ||
} | ||
|
||
export const UploadPageNew = (props: UploadPageProps) => { | ||
return ( | ||
<Page | ||
title='Upload' | ||
description='Upload and publish audio content to the Audius platform' | ||
contentClassName={styles.upload} | ||
header={<Header primary={'Upload'} />} | ||
> | ||
This is the new upload page | ||
</Page> | ||
) | ||
} | ||
|
||
export default UploadPageNew |