Skip to content

Commit f104172

Browse files
committed
Update Push Notification settings to use LiquidToggle components for consistency
1 parent f3b3010 commit f104172

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/components/settings/PushNotificationSettings.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import React, { useEffect, useState } from 'react';
2-
import { Form, Input, InputNumber, Switch, Tooltip, Card, Divider } from 'antd';
3-
import {
4-
QuestionCircleOutlined,
5-
BellOutlined,
6-
AppleOutlined,
7-
AndroidOutlined,
2+
import { Form, Input, InputNumber, Tooltip, Card } from 'antd';
3+
import {
4+
QuestionCircleOutlined,
5+
BellOutlined,
6+
AppleOutlined,
7+
AndroidOutlined,
88
SettingOutlined,
99
KeyOutlined,
1010
FileTextOutlined
1111
} from '@ant-design/icons';
12+
import { LiquidToggle } from '@app/components/common/LiquidToggle';
1213
import useGenericSettings from '@app/hooks/useGenericSettings';
1314
import { SettingsGroupType } from '@app/types/settings.types';
1415
import BaseSettingsForm from './BaseSettingsForm';
@@ -98,7 +99,7 @@ const PushNotificationSettings: React.FC = () => {
9899
}
99100
valuePropName="checked"
100101
>
101-
<Switch />
102+
<LiquidToggle />
102103
</Form.Item>
103104
</Card>
104105

@@ -251,7 +252,7 @@ const PushNotificationSettings: React.FC = () => {
251252
}
252253
valuePropName="checked"
253254
>
254-
<Switch />
255+
<LiquidToggle />
255256
</Form.Item>
256257

257258
<Form.Item
@@ -362,7 +363,7 @@ const PushNotificationSettings: React.FC = () => {
362363
}
363364
valuePropName="checked"
364365
>
365-
<Switch />
366+
<LiquidToggle />
366367
</Form.Item>
367368
</Card>
368369

@@ -388,7 +389,7 @@ const PushNotificationSettings: React.FC = () => {
388389
}
389390
valuePropName="checked"
390391
>
391-
<Switch />
392+
<LiquidToggle />
392393
</Form.Item>
393394

394395
<Form.Item

0 commit comments

Comments
 (0)