Skip to content

Commit

Permalink
add successful registration UI back in
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Oct 20, 2023
1 parent 7e74ff4 commit b69bfbc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 50 deletions.
49 changes: 24 additions & 25 deletions apps/potlock/widget/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,32 +621,31 @@ return (
<Container>
{!state.socialDataFetched ? (
<div>Loading...</div>
) : registeredProject ? (
<>
<h1>You've successfully registered!</h1>
<ButtonsContainer>
<Widget
src={`${ownerId}/widget/Buttons.NavigationButton`}
props={{
type: "primary",
text: "View your project",
disabled: false,
href: `?tab=project&projectId=${registeredProject.id}`,
}}
/>
<Widget
src={`${ownerId}/widget/Buttons.NavigationButton`}
props={{
type: "secondary",
text: "View all projects",
disabled: false,
href: `?tab=projects`,
}}
/>
</ButtonsContainer>
</>
) : (
// registeredProject ? (
// <>
// <h1>You've successfully registered!</h1>
// <ButtonsContainer>
// <Widget
// src={`${ownerId}/widget/Buttons.NavigationButton`}
// props={{
// type: "primary",
// text: "View your project",
// disabled: false,
// href: `?tab=project&projectId=${registeredProject.id}`,
// }}
// />
// <Widget
// src={`${ownerId}/widget/Buttons.NavigationButton`}
// props={{
// type: "secondary",
// text: "View all projects",
// disabled: false,
// href: `?tab=projects`,
// }}
// />
// </ButtonsContainer>
// </>
// ) :
<>
<Banner>
<BannerImageWithFallback src={state.bannerImageUrl} alt="banner" />
Expand Down
49 changes: 24 additions & 25 deletions build/potlock/src/Project/CreateForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -621,32 +621,31 @@ return (
<Container>
{!state.socialDataFetched ? (
<div>Loading...</div>
) : registeredProject ? (
<>
<h1>You've successfully registered!</h1>
<ButtonsContainer>
<Widget
src={`${ownerId}/widget/Buttons.NavigationButton`}
props={{
type: "primary",
text: "View your project",
disabled: false,
href: `?tab=project&projectId=${registeredProject.id}`,
}}
/>
<Widget
src={`${ownerId}/widget/Buttons.NavigationButton`}
props={{
type: "secondary",
text: "View all projects",
disabled: false,
href: `?tab=projects`,
}}
/>
</ButtonsContainer>
</>
) : (
// registeredProject ? (
// <>
// <h1>You've successfully registered!</h1>
// <ButtonsContainer>
// <Widget
// src={`${ownerId}/widget/Buttons.NavigationButton`}
// props={{
// type: "primary",
// text: "View your project",
// disabled: false,
// href: `?tab=project&projectId=${registeredProject.id}`,
// }}
// />
// <Widget
// src={`${ownerId}/widget/Buttons.NavigationButton`}
// props={{
// type: "secondary",
// text: "View all projects",
// disabled: false,
// href: `?tab=projects`,
// }}
// />
// </ButtonsContainer>
// </>
// ) :
<>
<Banner>
<BannerImageWithFallback src={state.bannerImageUrl} alt="banner" />
Expand Down

0 comments on commit b69bfbc

Please sign in to comment.