mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 17:11:23 -05:00
Remove SMS notification option
This commit is contained in:
@@ -15,7 +15,6 @@ interface ChannelPreferences {
|
|||||||
in_app: boolean;
|
in_app: boolean;
|
||||||
email: boolean;
|
email: boolean;
|
||||||
push: boolean;
|
push: boolean;
|
||||||
sms: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface WorkflowPreferences {
|
interface WorkflowPreferences {
|
||||||
@@ -45,7 +44,6 @@ export function NotificationsTab() {
|
|||||||
in_app: true,
|
in_app: true,
|
||||||
email: true,
|
email: true,
|
||||||
push: false,
|
push: false,
|
||||||
sms: false,
|
|
||||||
});
|
});
|
||||||
const [workflowPreferences, setWorkflowPreferences] = useState<WorkflowPreferences>({});
|
const [workflowPreferences, setWorkflowPreferences] = useState<WorkflowPreferences>({});
|
||||||
const [frequencySettings, setFrequencySettings] = useState<FrequencySettings>({
|
const [frequencySettings, setFrequencySettings] = useState<FrequencySettings>({
|
||||||
@@ -67,7 +65,8 @@ export function NotificationsTab() {
|
|||||||
const preferences = await notificationService.getPreferences(user.id);
|
const preferences = await notificationService.getPreferences(user.id);
|
||||||
|
|
||||||
if (preferences) {
|
if (preferences) {
|
||||||
setChannelPreferences(preferences.channelPreferences);
|
const { sms, ...channelPrefs } = preferences.channelPreferences;
|
||||||
|
setChannelPreferences(channelPrefs);
|
||||||
setWorkflowPreferences(preferences.workflowPreferences);
|
setWorkflowPreferences(preferences.workflowPreferences);
|
||||||
setFrequencySettings(preferences.frequencySettings);
|
setFrequencySettings(preferences.frequencySettings);
|
||||||
}
|
}
|
||||||
@@ -105,7 +104,10 @@ export function NotificationsTab() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const result = await notificationService.updatePreferences(user.id, {
|
const result = await notificationService.updatePreferences(user.id, {
|
||||||
channelPreferences,
|
channelPreferences: {
|
||||||
|
...channelPreferences,
|
||||||
|
sms: false, // SMS not supported in UI
|
||||||
|
},
|
||||||
workflowPreferences,
|
workflowPreferences,
|
||||||
frequencySettings,
|
frequencySettings,
|
||||||
});
|
});
|
||||||
@@ -246,27 +248,6 @@ export function NotificationsTab() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isNovuEnabled && (
|
|
||||||
<>
|
|
||||||
<Separator />
|
|
||||||
<div className="flex items-center justify-between opacity-50">
|
|
||||||
<div className="space-y-0.5">
|
|
||||||
<Label className="flex items-center gap-2">
|
|
||||||
SMS Notifications
|
|
||||||
<Badge variant="outline" className="text-xs">Coming Soon</Badge>
|
|
||||||
</Label>
|
|
||||||
<p className="text-sm text-muted-foreground">
|
|
||||||
Receive notifications via text message
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<Switch
|
|
||||||
checked={channelPreferences.sms}
|
|
||||||
onCheckedChange={(checked) => updateChannelPreference('sms', checked)}
|
|
||||||
disabled
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user