Skip to content

Commit

Permalink
clean up imports and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuang38 committed May 25, 2024
1 parent 93635b2 commit 415d514
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions dashboard/src/pages/macros.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ import { useQueryClient } from '@tanstack/react-query';
import { toast } from 'react-toastify';
import ConfirmDialog from 'components/Atoms/ConfirmDialog';
import { ReactNode } from 'react';
import { FieldFromManifest } from 'components/Instance/Create/FieldFromManifest';
import { FormFromManifest } from 'components/Instance/Create/FormFromManifest';
import SettingField from 'components/SettingField';
import { SettingFieldObject, adaptSettingManifest } from 'components/Instance/InstanceSettingsCreate/SettingObject';
import { RunningCard } from 'components/Atoms/Label.stories';
import { adaptSettingManifest } from 'components/Instance/InstanceSettingsCreate/SettingObject';
import { GetConfigResponse } from 'bindings/GetConfigResponse';
import { InstanceInfo } from 'bindings/InstanceInfo';
import TextCaption from 'components/Atoms/TextCaption';

// TODO - save original settings for macro in original component state, revert if cancelled.
const MacroModalContents = ({
data,
selectedInstance,
Expand Down Expand Up @@ -67,11 +63,7 @@ const MacroModalContents = ({
</>)
})
}
{
macroData.error &&

<TextCaption text = {macroData.message || ''} className = 'text-small text-red-300 whitespace-pre-wrap'/>
}
{macroData.error && <TextCaption text = {macroData.message || ''} className = 'text-small text-red-300 whitespace-pre-wrap'/>}

</span>
)
Expand Down

0 comments on commit 415d514

Please sign in to comment.