Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private generateBtnsBar = (): JSX.Element => {
const { wordings, dirty, imgData } = this.state
const leftBtn: ButtonsBar.BtnGroupsProps = {
btns: [
{
clickAction: this.clear,
cssClass: BUTTON_TYPE.FONT,
text: wordings.clear,
disabled: !imgData
},
{
clickAction: this.reset,
cssClass: BUTTON_TYPE.FONT,
text: wordings.reset
}
],
cssClass: 'btn-group-xs'
}
const rightBtn: ButtonsBar.BtnGroupsProps = {
btns: [
{
clickAction: this.save,
cssClass: BUTTON_TYPE.PRIMARY,
text: wordings.saveToProfile,
disabled: !dirty
}
],
cssClass: 'btn-group-xs',
private generateBtnsBar = (): JSX.Element => {
const { wordings, dirty, imgData } = this.state
const leftBtn: ButtonsBar.BtnGroupsProps = {
btns: [
{
clickAction: this.clear,
cssClass: BUTTON_TYPE.FONT,
text: wordings.clear,
disabled: !imgData
},
{
clickAction: this.reset,
cssClass: BUTTON_TYPE.FONT,
text: wordings.reset
}
],
cssClass: 'btn-group-xs'
}
const rightBtn: ButtonsBar.BtnGroupsProps = {
btns: [
{
clickAction: this.save,