Skip to content

Commit 43d225c

Browse files
committed
npm run lint-branch-fix
1 parent c70e4db commit 43d225c

6 files changed

Lines changed: 29 additions & 17 deletions

File tree

packages/components/src/internal/components/domainproperties/NameExpressionGenIdBanner.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface NameExpressionGenIdProps {
1212
containerPath?: string;
1313
dataTypeLSID?: string;
1414
dataTypeName: string; // sampletype or dataclass name
15-
kindName: 'SampleSet' | 'DataClass';
15+
kindName: 'DataClass' | 'SampleSet';
1616
rowId: number;
1717
}
1818

@@ -144,8 +144,8 @@ export const NameExpressionGenIdBanner: FC<NameExpressionGenIdProps> = props =>
144144
</Alert>
145145
{showResetDialog && (
146146
<Modal
147-
confirmText="Reset"
148147
confirmClass="btn-danger"
148+
confirmText="Reset"
149149
onCancel={onResetCancel}
150150
onConfirm={onResetConfirm}
151151
title={`Are you sure you want to reset genId for ${dataTypeName}?`}
@@ -159,8 +159,8 @@ export const NameExpressionGenIdBanner: FC<NameExpressionGenIdProps> = props =>
159159
)}
160160
{showEditDialog && (
161161
<Modal
162-
confirmText="Update"
163162
confirmClass="btn-danger"
163+
confirmText="Update"
164164
onCancel={onEditCancel}
165165
onConfirm={onEditConfirm}
166166
title={`Are you sure you want to update genId for ${dataTypeName}?`}
@@ -177,12 +177,12 @@ export const NameExpressionGenIdBanner: FC<NameExpressionGenIdProps> = props =>
177177
aria-label="GenId value"
178178
className="form-control update-genId-input "
179179
min={minNewGenId}
180-
step={1}
181180
name="newgenidval"
182181
onChange={(event: any) => setNewGenId(event?.target?.value)}
182+
placeholder="Enter new genId..."
183+
step={1}
183184
type="number"
184185
value={newGenId ?? minNewGenId}
185-
placeholder="Enter new genId..."
186186
/>
187187
</div>
188188
<div className="col-xs-7" />

packages/components/src/internal/components/domainproperties/assay/AssayPropertiesInput.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ export const QCStatesInput: FC<InputProps> = memo(props => (
119119
}
120120
label="QC States"
121121
>
122-
<input aria-label="QC States" checked={props.model.qcEnabled} id={FORM_IDS.QC_ENABLED} onChange={props.onChange} type="checkbox" />
122+
<input
123+
aria-label="QC States"
124+
checked={props.model.qcEnabled}
125+
id={FORM_IDS.QC_ENABLED}
126+
onChange={props.onChange}
127+
type="checkbox"
128+
/>
123129
</AssayPropertiesInput>
124130
));
125131
QCStatesInput.displayName = 'QCStatesInput';
@@ -227,7 +233,13 @@ export const AssayStatusInput: FC<InputProps> = memo(props => (
227233
hideAdvancedProperties={props.hideAdvancedProperties}
228234
label="Active"
229235
>
230-
<input aria-label="Active" checked={props.model.isActive()} id={FORM_IDS.STATUS} onChange={props.onChange} type="checkbox" />
236+
<input
237+
aria-label="Active"
238+
checked={props.model.isActive()}
239+
id={FORM_IDS.STATUS}
240+
onChange={props.onChange}
241+
type="checkbox"
242+
/>
231243
</AssayPropertiesInput>
232244
));
233245
AssayStatusInput.displayName = 'AssayStatusInput';

packages/components/src/internal/components/domainproperties/samples/UniqueIdBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { UNIQUE_ID_TYPE } from '../PropDescType';
77
import { SampleTypeModel } from './models';
88

99
interface Props {
10-
model: SampleTypeModel;
1110
isFieldsPanel: boolean;
11+
model: SampleTypeModel;
1212
onAddField: (fieldConfig: Partial<IDomainField>) => void;
1313
}
1414

packages/components/src/internal/components/search/SearchPanel.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ export const SearchPanelImpl: FC<SearchPanelImplProps> = memo(props => {
9191
const hasPages = totalHits > pageSize;
9292

9393
const helpLink = (
94-
<HelpLink topic={SEARCH_HELP_TOPIC} className="search-form__help-link">
94+
<HelpLink className="search-form__help-link" topic={SEARCH_HELP_TOPIC}>
9595
<i className="fa fa-question-circle search-form__help-icon" />
9696
Help with search
9797
</HelpLink>
9898
);
9999

100100
return (
101-
<Section panelClassName="test-loc-search-panel" title={title} context={helpLink}>
101+
<Section context={helpLink} panelClassName="test-loc-search-panel" title={title}>
102102
<div className="search-form panel-body">
103103
<form onSubmit={onSubmit}>
104104
<span className="input-group">
@@ -126,16 +126,16 @@ export const SearchPanelImpl: FC<SearchPanelImplProps> = memo(props => {
126126
{hasPages && (
127127
<div className="page-buttons">
128128
<PaginationButtons
129-
total={totalHits}
130129
currentPage={currentPage}
130+
nextPage={pageForward}
131131
perPage={pageSize}
132132
previousPage={pageBack}
133-
nextPage={pageForward}
133+
total={totalHits}
134134
/>
135135
</div>
136136
)}
137137
</div>
138-
{searchTerm && <SearchResultsPanel model={model} emptyResultDisplay={emptyTextMessage} offset={offset} />}
138+
{searchTerm && <SearchResultsPanel emptyResultDisplay={emptyTextMessage} model={model} offset={offset} />}
139139
</Section>
140140
);
141141
});
@@ -228,6 +228,6 @@ export const SearchPanel: FC<SearchPanelProps> = memo(props => {
228228
[search, searchTerm, pageSize, offset]
229229
);
230230

231-
return <SearchPanelImpl {...props} search={search} model={model} onPageChange={onPage} offset={offset} />;
231+
return <SearchPanelImpl {...props} model={model} offset={offset} onPageChange={onPage} search={search} />;
232232
});
233233
SearchPanel.displayName = 'SearchPanel';

packages/components/src/public/files/TemplateDownloadButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ describe('TemplateDownloadButton', () => {
123123
test('editor, with custom properties', () => {
124124
const { container } = renderWithAppContext(
125125
<TemplateDownloadButton
126+
className="custom-styling"
126127
onDownloadDefault={jest.fn()}
127128
text="Test Text"
128-
className="custom-styling"
129129
user={TEST_USER_EDITOR}
130130
/>
131131
);

packages/components/src/public/files/TemplateDownloadButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const TemplateDownloadButtonImpl: FC<Props> = memo(props => {
141141
{customTemplates.map(template => {
142142
if (template.url.endsWith('(unavailable)')) {
143143
return (
144-
<DisableableMenuItem key={template.label} disabled disabledMessage="File not found">
144+
<DisableableMenuItem disabled disabledMessage="File not found" key={template.label}>
145145
{template.label}
146146
</DisableableMenuItem>
147147
);
@@ -166,7 +166,7 @@ export const TemplateDownloadButton: FC<Props> = memo(props => {
166166
if (!onDownloadDefault && !defaultTemplateUrl?.length) return null;
167167

168168
return (
169-
<RequiresPermission perms={[PermissionTypes.Insert, PermissionTypes.Update]} permissionCheck="any" user={user}>
169+
<RequiresPermission permissionCheck="any" perms={[PermissionTypes.Insert, PermissionTypes.Update]} user={user}>
170170
<TemplateDownloadButtonImpl {...props} />
171171
</RequiresPermission>
172172
);

0 commit comments

Comments
 (0)