import PlanStep from './PlanStep';
import { Step } from './utils';
import { Alert } from '../../../components/ui/Alert';
-import { DeleteButton } from '../../../components/ui/buttons';
+import { ButtonIcon } from '../../../components/ui/buttons';
+import ClearIcon from '../../../components/icons-components/ClearIcon';
import RadioToggle from '../../../components/controls/RadioToggle';
import { bindAlmOrganization } from '../../../api/alm-integration';
import { sanitizeAlmId, getAlmMembersUrl, isGithub } from '../../../helpers/almIntegrations';
name: <strong>{almOrganization.name}</strong>
}}
/>
- <DeleteButton
- className="little-spacer-left"
- onClick={this.props.handleCancelImport}
- />
+ <ButtonIcon className="little-spacer-left" onClick={this.props.handleCancelImport}>
+ <ClearIcon />
+ </ButtonIcon>
</p>
{hasUnboundOrgs && (
import OrganizationDetailsStep from './OrganizationDetailsStep';
import PlanStep from './PlanStep';
import { Step } from './utils';
-import { DeleteButton } from '../../../components/ui/buttons';
+import ClearIcon from '../../../components/icons-components/ClearIcon';
+import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
+import { ButtonIcon } from '../../../components/ui/buttons';
import { getBaseUrl } from '../../../helpers/urls';
import { translate } from '../../../helpers/l10n';
import { sanitizeAlmId } from '../../../helpers/almIntegrations';
-import OrganizationAvatar from '../../../components/common/OrganizationAvatar';
interface Props {
almApplication: T.AlmApplication;
personalName: importPersonalOrg && <strong>{importPersonalOrg.name}</strong>
}}
/>
- <DeleteButton className="little-spacer-left" onClick={this.props.handleCancelImport} />
+ <ButtonIcon className="little-spacer-left" onClick={this.props.handleCancelImport}>
+ <ClearIcon />
+ </ButtonIcon>
</div>
<OrganizationDetailsForm
keyReadOnly={true}
const handleCancelImport = jest.fn().mockResolvedValue({ key: 'foo' });
const wrapper = shallowRender({ handleCancelImport });
- click(wrapper.find('DeleteButton'));
+ click(wrapper.find('ButtonIcon'));
expect(handleCancelImport).toBeCalled();
});
handleCancelImport
});
- click(wrapper.find('DeleteButton'));
+ click(wrapper.find('ButtonIcon'));
expect(handleCancelImport).toBeCalled();
});
}
}
/>
- <DeleteButton
+ <ButtonIcon
className="little-spacer-left"
onClick={[MockFunction]}
- />
+ >
+ <ClearIcon />
+ </ButtonIcon>
</p>
<RadioToggle
disabled={false}
}
}
/>
- <DeleteButton
+ <ButtonIcon
className="little-spacer-left"
onClick={[MockFunction]}
- />
+ >
+ <ClearIcon />
+ </ButtonIcon>
</p>
</div>
<OrganizationDetailsForm
}
}
/>
- <DeleteButton
+ <ButtonIcon
className="little-spacer-left"
onClick={[MockFunction]}
- />
+ >
+ <ClearIcon />
+ </ButtonIcon>
</div>
<OrganizationDetailsForm
keyReadOnly={true}