Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ui/apps/platform/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,6 @@ module.exports = [
'src/Containers/Login/LoginPage.jsx', // rewrite in TypeScript
'src/Containers/Login/TestLoginResultsPage.jsx', // rewrite in TypeScript
'src/Containers/MainPage/Header/UserMenu.tsx', // rewritten in TypeScript
'src/Containers/Policies/Modal/KeepBothSection.tsx', // rewritten in TypeScript
'src/Containers/Risk/EventTimeline/**', // deprecated
'src/Containers/Risk/Process/Binaries.jsx', // rewrite in TypeScript?
'src/Containers/Risk/Process/BinaryCollapsible.jsx', // rewrite in TypeScript?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import PropTypes from 'prop-types';
import { Field } from 'formik';
import { Radio } from '@patternfly/react-core';

const KeepBothSection = ({ changeRadio }) => {
export type KeepBothSectionProps = {
changeRadio: (handler, name: string, value: string) => () => void;
};

const KeepBothSection = ({ changeRadio }: KeepBothSectionProps) => {
return (
<Field name="resolution">
{({ field }) => (
Expand All @@ -19,8 +22,4 @@ const KeepBothSection = ({ changeRadio }) => {
);
};

KeepBothSection.propTypes = {
changeRadio: PropTypes.func.isRequired,
};

export default KeepBothSection;
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
import { Field } from 'formik';

type RenamePolicySectionProps = {
changeRadio: (handler, name, value) => () => void;
changeText: (handler, name) => (_, value) => void;
changeRadio: (handler, name: string, value: string) => () => void;
changeText: (handler, name: string) => (_, value) => void;
};

const RenamePolicySection = ({ changeRadio, changeText }: RenamePolicySectionProps) => {
Expand Down
Loading