Skip to content

Commit

Permalink
client: fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jul 1, 2021
1 parent e95d462 commit 8cd5c30
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions client/src/components/Settings/LogsConfig/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ const getIntervalTitle = (interval, t) => {
}
};

const getIntervalFields = (processing, t, toNumber) => QUERY_LOG_INTERVALS_DAYS.map((ivl) => <Field
key={ivl}
name="interval"
type="radio"
component={renderRadioField}
value={ivl}
placeholder={getIntervalTitle(ivl, t)}
normalize={toNumber}
disabled={processing}
/>);
const getIntervalFields = (processing, t, toNumber) => QUERY_LOG_INTERVALS_DAYS.map((interval) => (
<Field
key={interval}
name="interval"
type="radio"
component={renderRadioField}
value={interval}
placeholder={getIntervalTitle(interval, t)}
normalize={toNumber}
disabled={processing}
/>
));

const Form = (props) => {
const {
Expand Down

0 comments on commit 8cd5c30

Please sign in to comment.