Skip to content

Commit

Permalink
fix: Eslint formatting (#1987)
Browse files Browse the repository at this point in the history
# Description

Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration

# Snapshots:

Include snapshots for easier review.

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have already rebased the commits and make the commit message
conform to the project standard.
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] Any dependent changes have been merged and published in downstream
modules
  • Loading branch information
Dreammy23 authored Sep 9, 2024
2 parents 2e99116 + a5145aa commit f273cb4
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 f273cb4

Please sign in to comment.