mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 13:51:13 -05:00
Remove SMS notification option
This commit is contained in:
@@ -15,7 +15,6 @@ interface ChannelPreferences {
|
||||
in_app: boolean;
|
||||
email: boolean;
|
||||
push: boolean;
|
||||
sms: boolean;
|
||||
}
|
||||
|
||||
interface WorkflowPreferences {
|
||||
@@ -45,7 +44,6 @@ export function NotificationsTab() {
|
||||
in_app: true,
|
||||
email: true,
|
||||
push: false,
|
||||
sms: false,
|
||||
});
|
||||
const [workflowPreferences, setWorkflowPreferences] = useState<WorkflowPreferences>({});
|
||||
const [frequencySettings, setFrequencySettings] = useState<FrequencySettings>({
|
||||
@@ -67,7 +65,8 @@ export function NotificationsTab() {
|
||||
const preferences = await notificationService.getPreferences(user.id);
|
||||
|
||||
if (preferences) {
|
||||
setChannelPreferences(preferences.channelPreferences);
|
||||
const { sms, ...channelPrefs } = preferences.channelPreferences;
|
||||
setChannelPreferences(channelPrefs);
|
||||
setWorkflowPreferences(preferences.workflowPreferences);
|
||||
setFrequencySettings(preferences.frequencySettings);
|
||||
}
|
||||
@@ -105,7 +104,10 @@ export function NotificationsTab() {
|
||||
setLoading(true);
|
||||
try {
|
||||
const result = await notificationService.updatePreferences(user.id, {
|
||||
channelPreferences,
|
||||
channelPreferences: {
|
||||
...channelPreferences,
|
||||
sms: false, // SMS not supported in UI
|
||||
},
|
||||
workflowPreferences,
|
||||
frequencySettings,
|
||||
});
|
||||
@@ -246,27 +248,6 @@ export function NotificationsTab() {
|
||||
/>
|
||||
</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>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user