Skip to content

Commit

Permalink
fix button sizing and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
haseebk committed Oct 24, 2023
1 parent 6f79311 commit 11917f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/CreateMapathon/Step.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const ButtonWrapper = styled.div`
`

const ButtonContent = styled.div`
width: 7rem;
align-items: center;
justify-content: space-between;
`
Expand Down Expand Up @@ -114,7 +115,7 @@ class Step extends Component {
{this.props.isFirstStep ? (
<ButtonWrapper>
<Button
className="primary-btn mx-auto is-quarter"
className="primary-btn mx-auto"
float
onClickHandler={() => this.props.goNextStep()}
disabled={!this.props.isFilled || this.props.sendingRequest}
Expand All @@ -129,7 +130,7 @@ class Step extends Component {
) : this.props.isLastStep ? (
<ButtonWrapper>
<Button
className="gray300-btn mx-auto is-quarter"
className="gray300-btn mx-auto"
float
disabled={this.props.sendingRequest}
onClickHandler={() => this.props.goPrevStep()}
Expand All @@ -141,7 +142,7 @@ class Step extends Component {
</ButtonContent>
</Button>
<Button
className="primary-btn mx-auto is-quarter"
className="primary-btn mx-auto"
type="submit"
float
disabled={this.props.sendingRequest}
Expand All @@ -157,7 +158,7 @@ class Step extends Component {
) : (
<ButtonWrapper>
<Button
className="gray300-btn mx-auto is-quarter"
className="gray300-btn mx-auto"
disabled={this.props.sendingRequest}
onClickHandler={() => this.props.goPrevStep()}
>
Expand All @@ -168,7 +169,7 @@ class Step extends Component {
</ButtonContent>
</Button>
<Button
className="primary-btn mx-auto is-quarter"
className="primary-btn mx-auto"
onClickHandler={() => this.props.goNextStep()}
disabled={!this.props.isFilled || this.props.sendingRequest}
>
Expand Down

0 comments on commit 11917f0

Please sign in to comment.