Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Peveler <[email protected]>
  • Loading branch information
MasterOdin committed Feb 7, 2022
1 parent 76f5b73 commit 47f2818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/database-list-item-metadata.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { CSSProperties, PropsWithChildren, useCallback, useMemo, useState } from 'react';
import React, { CSSProperties, useCallback, useMemo, useState } from 'react';
import groupBy from 'lodash/groupBy';
import CollapseIcon from './collapse-icon';
import DatabaseItem from './database-item';
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/components/settings-modal-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ interface Props {
onSaveClick: (config: BaseConfig) => void;
onCancelClick: () => void;
config: ConfigState;
// TODO: hook up to render
error: Error | null;
}

Expand All @@ -40,7 +41,7 @@ const renderLogLevelItem = ({ label, icon }) => {
);
};

const SettingsModalForm: FC<Props> = ({ onSaveClick, onCancelClick, config, error }) => {
const SettingsModalForm: FC<Props> = ({ onSaveClick, onCancelClick, config }) => {
const [configState, setConfigState] = useState(cloneDeep(config.data as Config));

const modalRef = useRef<HTMLDivElement>(null);
Expand Down Expand Up @@ -130,6 +131,7 @@ const SettingsModalForm: FC<Props> = ({ onSaveClick, onCancelClick, config, erro
[configState],
);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const highlightError = useCallback((name: string): string => {
// TODO: figure what to do with this
// I'm not really certain what the original intention is here, as `error` is always just a regular
Expand Down

0 comments on commit 47f2818

Please sign in to comment.