Skip to content

Commit d0ae6d0

Browse files
committed
Fix ESLint empty arrow function errors in ThemePicker component
1 parent 97fea62 commit d0ae6d0

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

src/assets/images/profile1.png

6.16 KB
Loading

src/assets/images/profile1.webp

-6.77 KB
Binary file not shown.

src/components/header/components/settingsDropdown/settingsOverlay/ThemePicker/ThemePicker.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@ import { MoonSunSwitch } from '@app/components/common/MoonSunSwitch/MoonSunSwitc
33

44
export const ThemePicker: React.FC = () => {
55
// Only liquid-blue theme is supported - theme switching is disabled
6+
const handleMoonClick = () => {
7+
// Theme switching is disabled - no operation needed
8+
return;
9+
};
10+
11+
const handleSunClick = () => {
12+
// Theme switching is disabled - no operation needed
13+
return;
14+
};
15+
616
return (
717
<MoonSunSwitch
818
isMoonActive={false}
9-
onClickMoon={() => {}}
10-
onClickSun={() => {}}
19+
onClickMoon={handleMoonClick}
20+
onClickSun={handleSunClick}
1121
/>
1222
);
1323
};

src/components/settings/PushNotificationSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Container = styled.div`
1616
-webkit-backdrop-filter: blur(10px);
1717
border: 1px solid rgba(0, 255, 255, 0.1);
1818
border-radius: 8px;
19-
padding: 1.5rem;
19+
padding: 1.5rem 1.5rem 0.5rem 1.5rem;
2020
margin-bottom: 1rem;
2121
`;
2222

@@ -408,7 +408,7 @@ const PushNotificationSettings: React.FC = () => {
408408
prefix={<FileTextOutlined />}
409409
/>
410410
</Form.Item>
411-
<Form.Item>
411+
<Form.Item style={{ marginBottom: 0 }}>
412412
<p style={{
413413
color: 'rgba(255, 255, 255, 0.8)',
414414
fontSize: '0.9em',

src/hooks/usePaidSubscribers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useHandleLogout } from './authUtils';
55
import { useProfileAPI } from './useProfileAPI';
66

77
// Import the profile images for dummy data
8-
import profile1 from '@app/assets/images/profile1.webp';
8+
import profile1 from '@app/assets/images/profile1.png';
99
import profile2 from '@app/assets/images/profile2.jpg';
1010
import profile3 from '@app/assets/images/profile3.webp';
1111
import profile4 from '@app/assets/images/profile4.webp';

0 commit comments

Comments
 (0)