Skip to content

Commit bbf4a15

Browse files
committed
convert props to types from interfaces
1 parent 1fa3c1c commit bbf4a15

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/notification-detail.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { useTranslator } from '../hooks';
55
import { Scheduler } from '../handler';
66
import { LabeledValue } from '../components/labeled-value';
77

8-
interface INotificationsSettingsItemProps {
8+
type INotificationsSettingsItemProps = {
99
label: string;
1010
value: string | boolean;
11-
}
11+
};
1212

13-
interface INotificationsSettingsDetailsProps {
13+
type INotificationsSettingsDetailsProps = {
1414
notificationsSettings: Scheduler.INotificationsSettings;
15-
}
15+
};
1616

1717
const NotificationsSettingsItem: React.FC<INotificationsSettingsItemProps> = ({
1818
label,

src/components/notification-picker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ import Select, { SelectChangeEvent } from '@mui/material/Select';
1616
import { Stack } from './stack';
1717
import { useTranslator } from '../hooks';
1818

19-
interface INotificationsSettingsProps {
19+
type INotificationsSettingsProps = {
2020
notificationEvents: string[];
2121
id: string;
2222
model: ICreateJobModel;
2323
handleModelChange: (model: ICreateJobModel) => void;
24-
}
24+
};
2525

2626
export function NotificationsSettings({
2727
notificationEvents,

0 commit comments

Comments
 (0)