mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
/dev-profile route
This commit is contained in:
1 parent
9a105d7ee2
commit
6ef467068b
2 files changed
+17
-6
No files matched your search
@@ -96,6 +96,7 @@ import VoiceDesignerUseVoicePage from "./pages/voice_designer/VoiceDesignerUseVo
|
||||
import { PasswordResetEmailPage } from "./pages/password_reset/PasswordResetEmailPage";
|
||||
import { PasswordResetVerificationPage } from "./pages/password_reset/PasswordResetVerificationPage";
|
||||
import { NewProfilePage } from "./pages/profile/profile_view/NewProfilePage";
|
||||
import { ProfilePage } from "./pages/profile/profile_view/ProfilePage";
|
||||
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
@@ -297,6 +298,16 @@ class PageContainer extends React.Component<
|
||||
</Route>
|
||||
|
||||
<Route path="/profile/:username">
|
||||
<ProfilePage
|
||||
sessionWrapper={this.props.sessionWrapper}
|
||||
sessionSubscriptionsWrapper={
|
||||
this.props.sessionSubscriptionsWrapper
|
||||
}
|
||||
/>
|
||||
</Route>
|
||||
|
||||
{/* New Profile Page */}
|
||||
<Route path="/dev-profile/:username">
|
||||
<NewProfilePage
|
||||
sessionWrapper={this.props.sessionWrapper}
|
||||
sessionSubscriptionsWrapper={
|
||||
|
||||
@@ -86,10 +86,10 @@ function NewProfilePage(this: any, props: Props) {
|
||||
usePrefixedDocumentTitle(documentTitle);
|
||||
|
||||
if (
|
||||
pathname === `/profile/${username}` ||
|
||||
pathname === `/profile/${username}/`
|
||||
pathname === `/dev-profile/${username}` ||
|
||||
pathname === `/dev-profile/${username}/`
|
||||
) {
|
||||
return <Redirect to={`/profile/${username}/media`} />;
|
||||
return <Redirect to={`/dev-profile/${username}/media`} />;
|
||||
}
|
||||
|
||||
if (notFoundState) {
|
||||
@@ -355,19 +355,19 @@ function NewProfilePage(this: any, props: Props) {
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
to: `/profile/${username}/media`,
|
||||
to: `/dev-profile/${username}/media`,
|
||||
label: "Media",
|
||||
content: <MediaTab />,
|
||||
icon: faPhotoFilmMusic,
|
||||
},
|
||||
{
|
||||
to: `/profile/${username}/weights`,
|
||||
to: `/dev-profile/${username}/weights`,
|
||||
label: "Weights",
|
||||
content: <WeightsTab />,
|
||||
icon: faLayerGroup,
|
||||
},
|
||||
{
|
||||
to: `/profile/${username}/bookmarks`,
|
||||
to: `/dev-profile/${username}/bookmarks`,
|
||||
label: "Bookmarks",
|
||||
content: <BookmarksTab />,
|
||||
icon: faBookmark,
|
||||
|
||||
Reference in new issue
Block a user