Refactor notification settings: replace NotificationSettings component with NotificationProviderSettings and remove unused NotificationSettings file

This commit is contained in:
headlesdev 2025-05-25 22:50:26 +02:00
parent dc7280126d
commit eab0b76739
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import ErrorToast from '@/components/Error';
import SuccessToast from '@/components/Success';
import { ProfileSettings } from '@/components/cards/settings/ProfileSettings';
import { PasswordSettings } from '@/components/cards/settings/PasswordSettings';
import { NotificationSettings } from '@/components/cards/settings/NotificationSettings';
import { NotificationSettings } from '@/components/cards/settings/NotificationProviderSettings';
import { useState } from 'react';
interface SettingsPageProps {

View File

@ -25,8 +25,8 @@ export const NotificationSettings = ({ onError, onSuccess }: { onError: (message
<div className="w-full bg-base-200 p-4 rounded-2xl border border-stone-800">
<div className="flex items-center justify-between">
<div>
<h2 className="text-lg font-bold">Notification Settings</h2>
<p className="text-sm opacity-70">Manage your notification settings</p>
<h2 className="text-lg font-bold">Notification Provider Settings</h2>
<p className="text-sm opacity-70">Manage your notification providers</p>
</div>
<button className="btn btn-primary" onClick={() => (document.getElementById('add_notification') as HTMLDialogElement)?.showModal()}>
<Plus className="w-5 h-5" />