Skip to content

Commit

Permalink
Fixed some linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelmold authored and timopollmeier committed Dec 8, 2023
1 parent b9fa0af commit bc6d746
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/web/pages/scanners/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@

import React from 'react';

import {connect} from 'react-redux';

import _ from 'gmp/locale';
import {longDate} from 'gmp/locale/date';

import {filter, map} from 'gmp/utils/array';
import {hasValue, isDefined} from 'gmp/utils/identity';
import {selectSaveId} from 'gmp/utils/id';

import {parseInt} from 'gmp/parser';

Expand All @@ -36,51 +32,22 @@ import withGmp from 'web/utils/withGmp';

import SaveDialog from 'web/components/dialog/savedialog';

import FootNote from 'web/components/footnote/footnote';

import FormGroup from 'web/components/form/formgroup';
import Select from 'web/components/form/select';
import TextField from 'web/components/form/textfield';

import KeyIcon from 'web/components/icon/keyicon';
import NewIcon from 'web/components/icon/newicon';

import Divider from 'web/components/layout/divider';
import Layout from 'web/components/layout/layout';

import {getTimezone} from 'web/store/usersettings/selectors';

import {
GREENBONE_SENSOR_SCANNER_TYPE,
scannerTypeName,
} from 'gmp/models/scanner';

const AVAILABLE_SCANNER_TYPES = [GREENBONE_SENSOR_SCANNER_TYPE];

const render_certificate_info = (info, tz) => {
if (!isDefined(info)) {
return null;
}

if (info.time_status === 'expired') {
return _('Certificate currently in use expired at {{date}}', {
date: longDate(info.expirationTime, tz),
});
}
if (info.time_status === 'inactive') {
return _('Certificate currently not valid until {{date}}', {
date: longDate(info.activationTime, tz),
});
}
return _('Certificate in use will expire at {{date}}', {
date: longDate(info.expirationTime, tz),
});
};

const mapStateToProps = rootState => ({
timezone: getTimezone(rootState),
});

const ScannerDialog = ({
ca_pub,
comment = '',
Expand Down

0 comments on commit bc6d746

Please sign in to comment.