mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Add profile appearance and notifications settings
Co-authored-by: Claude Code <claude@anthropic.com>
This commit is contained in:
1 parent
b082da436b
commit
1452519c76
7 files changed
+115
-6
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
|
||||
import { SettingsSection } from './SettingsSection';
|
||||
import { SwitchItem } from './SwitchItem';
|
||||
|
||||
export interface NotificationSettingsProps {
|
||||
pushEnabled: boolean;
|
||||
isUpdatingPush: boolean;
|
||||
onPushToggle: (value: boolean) => void;
|
||||
delay?: number;
|
||||
}
|
||||
|
||||
export const NotificationSettings: React.FC<NotificationSettingsProps> = ({
|
||||
pushEnabled,
|
||||
isUpdatingPush,
|
||||
onPushToggle,
|
||||
delay = 360,
|
||||
}) => {
|
||||
return (
|
||||
<SettingsSection title="Notifications" delay={delay}>
|
||||
<SwitchItem
|
||||
icon="notifications-outline"
|
||||
label="Push Notifications"
|
||||
description="Get alerts for matches and messages"
|
||||
value={pushEnabled}
|
||||
onValueChange={onPushToggle}
|
||||
disabled={isUpdatingPush}
|
||||
/>
|
||||
</SettingsSection>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user