Modified the Stepper footer button layout.

feature/appm-store/pbac
Menaka Jayawardena 7 years ago
parent 71875904d3
commit bde1f80697

@ -19,7 +19,7 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React, {Component} from 'react'; import React, {Component} from 'react';
import {FormattedMessage} from 'react-intl'; import {FormattedMessage} from 'react-intl';
import {Button, Form, FormFeedback, FormGroup, Input, Label, ModalFooter, ModalBody} from 'reactstrap'; import {Button, Form, FormFeedback, FormGroup, Input, Label, ModalBody, ModalFooter} from 'reactstrap';
import * as validator from '../../../../common/validator'; import * as validator from '../../../../common/validator';
import Chip from "../../../UIComponents/Chip/Chip"; import Chip from "../../../UIComponents/Chip/Chip";
@ -342,13 +342,15 @@ class Step1 extends Component {
<FormFeedback id="form-error">{this.state.errors.tags}</FormFeedback> <FormFeedback id="form-error">{this.state.errors.tags}</FormFeedback>
</FormGroup> </FormGroup>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter className="custom-footer row">
<div className="footer-main-btn col">
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}> <Button className="custom-flat danger-flat" onClick={this.onCancelClick}>
<FormattedMessage id="Cancel" defaultMessage="Cancel"/> <FormattedMessage id="Cancel" defaultMessage="Cancel"/>
</Button> </Button>
<Button className="custom-raised primary" onClick={this.setStepData}> <Button className="custom-flat primary-flat" onClick={this.setStepData}>
<FormattedMessage id="Continue" defaultMessage="Continue"/> <FormattedMessage id="Continue" defaultMessage="Continue"/>
</Button> </Button>
</div>
</ModalFooter> </ModalFooter>
</div> </div>
); );

@ -175,16 +175,20 @@ class Step2 extends Component {
<FormFeedback id="form-error">{this.state.errors.platform}</FormFeedback> <FormFeedback id="form-error">{this.state.errors.platform}</FormFeedback>
</FormGroup> </FormGroup>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter className="custom-footer row">
<div className="footer-back-btn col">
<Button className="custom-flat primary-flat" onClick={this.onBackClick}> <Button className="custom-flat primary-flat" onClick={this.onBackClick}>
<FormattedMessage id="Back" defaultMessage="Back"/> <FormattedMessage id="Back" defaultMessage="Back"/>
</Button> </Button>
</div>
<div className="footer-main-btn col">
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}> <Button className="custom-flat danger-flat" onClick={this.onCancelClick}>
<FormattedMessage id="Cancel" defaultMessage="Cancel"/> <FormattedMessage id="Cancel" defaultMessage="Cancel"/>
</Button> </Button>
<Button className="custom-raised primary" onClick={this.setStepData}> <Button className="custom-flat primary-flat" onClick={this.setStepData}>
<FormattedMessage id="Continue" defaultMessage="Continue"/> <FormattedMessage id="Continue" defaultMessage="Continue"/>
</Button> </Button>
</div>
</ModalFooter> </ModalFooter>
</div> </div>
); );

@ -226,16 +226,20 @@ class Step3 extends Component {
</div> </div>
</div> </div>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter className="custom-footer row">
<div className="footer-back-btn col">
<Button className="custom-flat primary-flat" onClick={this.onBackClick}> <Button className="custom-flat primary-flat" onClick={this.onBackClick}>
<FormattedMessage id="Back" defaultMessage="Back"/> <FormattedMessage id="Back" defaultMessage="Back"/>
</Button> </Button>
</div>
<div className="footer-main-btn col">
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}> <Button className="custom-flat danger-flat" onClick={this.onCancelClick}>
<FormattedMessage id="Cancel" defaultMessage="Cancel"/> <FormattedMessage id="Cancel" defaultMessage="Cancel"/>
</Button> </Button>
<Button className="custom-raised primary" onClick={this.setStepData}> <Button className="custom-flat primary-flat" onClick={this.setStepData}>
<FormattedMessage id="Continue" defaultMessage="Continue"/> <FormattedMessage id="Continue" defaultMessage="Continue"/>
</Button> </Button>
</div>
</ModalFooter> </ModalFooter>
</div> </div>
); );

@ -151,16 +151,20 @@ class Step4 extends Component {
</FormGroup> </FormGroup>
</Collapse> </Collapse>
</ModalBody> </ModalBody>
<ModalFooter> <ModalFooter className="custom-footer row">
<div className="footer-back-btn col">
<Button className="custom-flat primary-flat" onClick={this.onBackClick}> <Button className="custom-flat primary-flat" onClick={this.onBackClick}>
<FormattedMessage id="Back" defaultMessage="Back"/> <FormattedMessage id="Back" defaultMessage="Back"/>
</Button> </Button>
</div>
<div className="footer-main-btn col">
<Button className="custom-flat danger-flat" onClick={this.onCancelClick}> <Button className="custom-flat danger-flat" onClick={this.onCancelClick}>
<FormattedMessage id="Cancel" defaultMessage="Cancel"/> <FormattedMessage id="Cancel" defaultMessage="Cancel"/>
</Button> </Button>
<Button className="custom-raised primary" onClick={this.onSubmit}> <Button className="custom-flat primary-flat" onClick={this.onSubmit}>
<FormattedMessage id="Finish" defaultMessage="Finish"/> <FormattedMessage id="Finish" defaultMessage="Finish"/>
</Button> </Button>
</div>
</ModalFooter> </ModalFooter>
</div> </div>
); );

Loading…
Cancel
Save