mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-16 20:20:29 +03:00
Add option to change room notification settings (#2281)
This commit is contained in:
parent
074a5e855d
commit
71bfc96b5c
12 changed files with 409 additions and 164 deletions
15
src/app/pages/client/ClientRoomsNotificationPreferences.tsx
Normal file
15
src/app/pages/client/ClientRoomsNotificationPreferences.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import React, { ReactNode } from 'react';
|
||||
import {
|
||||
RoomsNotificationPreferencesProvider,
|
||||
useRoomsNotificationPreferences,
|
||||
} from '../../hooks/useRoomsNotificationPreferences';
|
||||
|
||||
export function ClientRoomsNotificationPreferences({ children }: { children: ReactNode }) {
|
||||
const preferences = useRoomsNotificationPreferences();
|
||||
|
||||
return (
|
||||
<RoomsNotificationPreferencesProvider value={preferences}>
|
||||
{children}
|
||||
</RoomsNotificationPreferencesProvider>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue