Skip to content

Commit

Permalink
fix: Eslint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
严志勇 committed Sep 9, 2024
1 parent bc717c4 commit a5145aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/components/flow/canvas-modal/flow-template-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const FlowTemplateModal: React.FC<Props> = ({ isFlowTemplateModalOpen, se
return (
<>
<Modal
className='w-[700px]'
className='w-[700px]'
title={t('Import_From_Template')}
open={isFlowTemplateModalOpen}
onCancel={() => setIsFlowTemplateModalOpen(false)}
Expand Down
2 changes: 1 addition & 1 deletion web/components/flow/canvas-modal/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './add-flow-variable-modal';
export * from './export-flow-modal';
export * from './flow-template-modal';
export * from './import-flow-modal';
export * from './save-flow-modal';
export * from './flow-template-modal';
8 changes: 4 additions & 4 deletions web/components/flow/canvas-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const CanvasNode: React.FC<CanvasNodeProps> = ({ data }) => {
});
}

function onParameterValuesChange(changedValues: any, allValues: any) {
function onParameterValuesChange(changedValues: any) {
const [changedKey, changedVal] = Object.entries(changedValues)[0];

updateCurrentNodeValue(changedKey, changedVal);
Expand Down Expand Up @@ -195,9 +195,9 @@ const CanvasNode: React.FC<CanvasNodeProps> = ({ data }) => {
className={classNames(
'h-auto rounded-xl shadow-md px-2 py-4 border bg-white dark:bg-zinc-800 cursor-grab flex flex-col space-y-2 text-sm',
{
'w-80':node?.tags?.ui_size === 'middle' || !node?.tags?.ui_size,
'w-[256px]':node?.tags?.ui_size === 'small',
'w-[530px]':node?.tags?.ui_size === 'large',
'w-80': node?.tags?.ui_size === 'middle' || !node?.tags?.ui_size,
'w-[256px]': node?.tags?.ui_size === 'small',
'w-[530px]': node?.tags?.ui_size === 'large',
'border-blue-500': node.selected || isHovered,
'border-stone-400 dark:border-white': !node.selected && !isHovered,
'border-dashed': flowType !== 'operator',
Expand Down
2 changes: 1 addition & 1 deletion web/components/flow/node-param-handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ formValuesChange, n
if (ui_type === 'slider' && data.is_list) {
defaultValue = [0, 1];
}

return (
<Form.Item
className='mb-2'
Expand Down

0 comments on commit a5145aa

Please sign in to comment.