mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 23:47:13 +00:00
Refactor notification settings: replace NotificationSettings component with NotificationProviderSettings and remove unused NotificationSettings file
This commit is contained in:
parent
dc7280126d
commit
eab0b76739
@ -5,7 +5,7 @@ import ErrorToast from '@/components/Error';
|
|||||||
import SuccessToast from '@/components/Success';
|
import SuccessToast from '@/components/Success';
|
||||||
import { ProfileSettings } from '@/components/cards/settings/ProfileSettings';
|
import { ProfileSettings } from '@/components/cards/settings/ProfileSettings';
|
||||||
import { PasswordSettings } from '@/components/cards/settings/PasswordSettings';
|
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';
|
import { useState } from 'react';
|
||||||
|
|
||||||
interface SettingsPageProps {
|
interface SettingsPageProps {
|
||||||
|
|||||||
@ -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="w-full bg-base-200 p-4 rounded-2xl border border-stone-800">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-lg font-bold">Notification Settings</h2>
|
<h2 className="text-lg font-bold">Notification Provider Settings</h2>
|
||||||
<p className="text-sm opacity-70">Manage your notification settings</p>
|
<p className="text-sm opacity-70">Manage your notification providers</p>
|
||||||
</div>
|
</div>
|
||||||
<button className="btn btn-primary" onClick={() => (document.getElementById('add_notification') as HTMLDialogElement)?.showModal()}>
|
<button className="btn btn-primary" onClick={() => (document.getElementById('add_notification') as HTMLDialogElement)?.showModal()}>
|
||||||
<Plus className="w-5 h-5" />
|
<Plus className="w-5 h-5" />
|
||||||
Loading…
x
Reference in New Issue
Block a user