Skip to content

Commit abc0ac5

Browse files
committed
fix(web): add isonboarding variable to pagecontentstemplate
1 parent 2a42fc7 commit abc0ac5

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

web/src/components/Popup/MiniGuides/Appeal/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const Appeal: React.FC<IAppeal> = ({ toggleMiniGuide }) => {
4949
toggleMiniGuide={toggleMiniGuide}
5050
leftPageContents={leftPageContents}
5151
rightPageComponents={rightPageComponents}
52+
isOnboarding={false}
5253
canClose={true}
5354
isVisible={true}
5455
/>

web/src/components/Popup/MiniGuides/BinaryVoting/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const BinaryVoting: React.FC<IBinaryVoting> = ({ toggleMiniGuide }) => {
3535
toggleMiniGuide={toggleMiniGuide}
3636
leftPageContents={leftPageContents}
3737
rightPageComponents={rightPageComponents}
38+
isOnboarding={false}
3839
canClose={true}
3940
isVisible={true}
4041
/>

web/src/components/Popup/MiniGuides/Onboarding/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const Onboarding: React.FC<IOnboarding> = ({ toggleMiniGuide }) => {
8383
toggleMiniGuide={toggleMiniGuide}
8484
leftPageContents={leftPageContents}
8585
rightPageComponents={rightPageComponents}
86+
isOnboarding={true}
8687
canClose={canCloseOnboarding}
8788
isVisible={!isAnyMiniGuideOpen}
8889
toggleSubMiniGuide={toggleSubMiniGuide}

web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ interface IPageContentsTemplate {
8181
links?: string[];
8282
}[];
8383
rightPageComponents: () => React.ReactNode[];
84+
isOnboarding: boolean;
8485
canClose: boolean;
8586
isVisible: boolean;
8687
}
@@ -92,6 +93,7 @@ const PageContentsTemplate: React.FC<IPageContentsTemplate> = ({
9293
rightPageComponents,
9394
canClose,
9495
isVisible,
96+
isOnboarding,
9597
}) => {
9698
const [currentPage, setCurrentPage] = useState(1);
9799

@@ -109,7 +111,7 @@ const PageContentsTemplate: React.FC<IPageContentsTemplate> = ({
109111
currentPage={currentPage}
110112
setCurrentPage={setCurrentPage}
111113
numPages={leftPageContents.length}
112-
isOnboarding={false}
114+
isOnboarding={isOnboarding}
113115
canClose={canClose}
114116
isVisible={isVisible}
115117
/>

web/src/components/Popup/MiniGuides/RankedVoting/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const RankedVoting: React.FC<IRankedVoting> = ({ toggleMiniGuide }) => {
3737
toggleMiniGuide={toggleMiniGuide}
3838
leftPageContents={leftPageContents}
3939
rightPageComponents={rightPageComponents}
40+
isOnboarding={false}
4041
canClose={true}
4142
isVisible={true}
4243
/>

web/src/components/Popup/MiniGuides/Staking/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const Staking: React.FC<IStaking> = ({ toggleMiniGuide }) => {
5555
toggleMiniGuide={toggleMiniGuide}
5656
leftPageContents={leftPageContents}
5757
rightPageComponents={rightPageComponents}
58+
isOnboarding={false}
5859
canClose={true}
5960
isVisible={true}
6061
/>

0 commit comments

Comments
 (0)