Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 86bd676

Browse files
committed
Clean up
1 parent f4eb952 commit 86bd676

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/NumField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Num = (props: NumFieldProps) => {
3838
step={props.decimal ? 0.01 : 1}
3939
type="number"
4040
value={props.value ?? ''}
41-
validated={(props.error) ? 'error' : 'default'}
41+
validated={props.error ? 'error' : 'default'}
4242
/>
4343
);
4444
};

src/SelectField.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useEffect, useMemo, useState } from 'react';
1+
import React, { useCallback, useMemo, useState } from 'react';
22
import {
33
Checkbox,
44
CheckboxProps,
@@ -10,7 +10,7 @@ import {
1010
SelectVariant,
1111
SelectOptionObject,
1212
} from '@patternfly/react-core';
13-
import { connectField, filterDOMProps, useField } from 'uniforms/es5';
13+
import { connectField, filterDOMProps } from 'uniforms/es5';
1414

1515
import wrapField from './wrapField';
1616

0 commit comments

Comments
 (0)