@rpg-engine/long-bow 0.6.30 → 0.6.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.6.30",
3
+ "version": "0.6.31",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -111,17 +111,20 @@ export const Stepper: React.FC<IStepperProps> = ({
111
111
  <StepperBody>{currentComponent}</StepperBody>
112
112
  </StepperBodyContainer>
113
113
 
114
- <StepperFooter>
115
- {!useSideArrows && renderArrows()}
116
- {currentStep === totalSteps - 1 && finalCTAButton && (
117
- <Button
118
- buttonType={ButtonTypes.RPGUIButton}
119
- onClick={finalCTAButton.onClick}
120
- >
121
- {finalCTAButton.label}
122
- </Button>
123
- )}
124
- </StepperFooter>
114
+ {(!useSideArrows ||
115
+ (currentStep === totalSteps - 1 && finalCTAButton)) && (
116
+ <StepperFooter>
117
+ {!useSideArrows && renderArrows()}
118
+ {currentStep === totalSteps - 1 && finalCTAButton && (
119
+ <Button
120
+ buttonType={ButtonTypes.RPGUIButton}
121
+ onClick={finalCTAButton.onClick}
122
+ >
123
+ {finalCTAButton.label}
124
+ </Button>
125
+ )}
126
+ </StepperFooter>
127
+ )}
125
128
  </StepperContainer>
126
129
  );
127
130
  };
@@ -74,7 +74,7 @@ const Container = styled.div`
74
74
  `;
75
75
 
76
76
  const LessonFooter = styled.div`
77
- margin-top: 2rem;
77
+ margin-top: 1rem;
78
78
  `;
79
79
 
80
80
  const LessonImage = styled.div`