ui - view and set alerting types

This commit is contained in:
Ishaan Jaff 2024-04-17 21:26:37 -07:00
parent beeee01199
commit 29b1002b3b

View file

@ -169,6 +169,24 @@ const Settings: React.FC<SettingsPageProps> = ({
</li>
))}
</ul>
{callback.alerting_types && (
<div>
<Text className="mt-2">Alerting Types</Text>
<Select
mode="multiple"
style={{ width: '100%' }}
placeholder="Select Alerting Types"
optionLabelProp="label"
defaultValue={callback.alerting_types}
>
{callback.alerting_types.map((type: string) => (
<Select.Option key={type} value={type} label={type}>
{type}
</Select.Option>
))}
</Select>
</div>
)}
<Button className="mt-2" onClick={() => handleSaveChanges(callback)}>
Save Changes
</Button>