fix: button colors quick (#2056)

* add _redirects file for when output target is netlify

* temporarily swap dialog primary/secondary button types for dialogs
This commit is contained in:
Danny Brown authored and GitHub committed 2020-09-22 21:41:42 -04:00
1 parent 2fc7169fa4
commit 56824b9142
4 files changed
+13 -6

No files matched your search

@@ -48,8 +48,8 @@ function callInputDialog(
noCloseButton: true,
onClose: () => UIDialogService.dismiss({ id: dialogId }),
actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' },
{ id: 'save', text: 'Save', type: 'primary' },
{ id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'secondary' },
],
onSubmit: onSubmitHandler,
body: ({ value, setValue }) => {
@@ -43,8 +43,8 @@ export default function createReportDialogPrompt(UIDialogService) {
noCloseButton: true,
onClose: _handleClose,
actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' },
{ id: 'save', text: 'Save', type: 'primary' },
{ id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'secondary' },
],
// TODO: Should be on button press...
onSubmit: _handleFormSubmit,
@@ -215,8 +215,9 @@ function PanelMeasurementTableTracking({ servicesManager, extensionManager }) {
);
},
actions: [
{ id: 'cancel', text: 'Cancel', type: 'secondary' },
{ id: 'save', text: 'Save', type: 'primary' },
// temp: swap button types until colors are updated
{ id: 'cancel', text: 'Cancel', type: 'primary' },
{ id: 'save', text: 'Save', type: 'secondary' },
],
onSubmit: onSubmitHandler,
},