Skip to content

Commit 9342599

Browse files
Copilotd10c
andcommitted
Fix prettier formatting in MethodRow.tsx
Co-authored-by: d10c <9970661+d10c@users.noreply.github.com>
1 parent 0352643 commit 9342599

File tree

1 file changed

+32
-33
lines changed

1 file changed

+32
-33
lines changed

extensions/ql-vscode/src/view/model-editor/MethodRow.tsx

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -359,39 +359,38 @@ const ModelableMethodRow = forwardRef<HTMLDivElement, MethodRowProps>(
359359
);
360360
ModelableMethodRow.displayName = "ModelableMethodRow";
361361

362-
const UnmodelableMethodRow = forwardRef<
363-
HTMLDivElement,
364-
MethodRowProps
365-
>((props: MethodRowProps, ref) => {
366-
const { method, viewState, revealedMethodSignature } = props;
367-
368-
const jumpToMethod = useCallback(
369-
() => sendJumpToMethodMessage(method),
370-
[method],
371-
);
372-
373-
return (
374-
<DataGridRow
375-
data-testid="unmodelable-method-row"
376-
focused={revealedMethodSignature === method.signature}
377-
>
378-
<DataGridCell ref={ref}>
379-
<ApiOrMethodRow>
380-
<ModelingStatusIndicator status="saved" />
381-
<MethodClassifications method={method} />
382-
<MethodName {...props.method} />
383-
{viewState.mode === Mode.Application && (
384-
<UsagesButton onClick={jumpToMethod}>
385-
{method.usages.length}
386-
</UsagesButton>
387-
)}
388-
<ViewLink onClick={jumpToMethod}>View</ViewLink>
389-
</ApiOrMethodRow>
390-
</DataGridCell>
391-
<DataGridCell gridColumn="span 5">Method already modeled</DataGridCell>
392-
</DataGridRow>
393-
);
394-
});
362+
const UnmodelableMethodRow = forwardRef<HTMLDivElement, MethodRowProps>(
363+
(props: MethodRowProps, ref) => {
364+
const { method, viewState, revealedMethodSignature } = props;
365+
366+
const jumpToMethod = useCallback(
367+
() => sendJumpToMethodMessage(method),
368+
[method],
369+
);
370+
371+
return (
372+
<DataGridRow
373+
data-testid="unmodelable-method-row"
374+
focused={revealedMethodSignature === method.signature}
375+
>
376+
<DataGridCell ref={ref}>
377+
<ApiOrMethodRow>
378+
<ModelingStatusIndicator status="saved" />
379+
<MethodClassifications method={method} />
380+
<MethodName {...props.method} />
381+
{viewState.mode === Mode.Application && (
382+
<UsagesButton onClick={jumpToMethod}>
383+
{method.usages.length}
384+
</UsagesButton>
385+
)}
386+
<ViewLink onClick={jumpToMethod}>View</ViewLink>
387+
</ApiOrMethodRow>
388+
</DataGridCell>
389+
<DataGridCell gridColumn="span 5">Method already modeled</DataGridCell>
390+
</DataGridRow>
391+
);
392+
},
393+
);
395394
UnmodelableMethodRow.displayName = "UnmodelableMethodRow";
396395

397396
function sendJumpToMethodMessage(method: Method) {

0 commit comments

Comments
 (0)