diff --git a/src/components/Navigation/UserSection.module.css b/src/components/Navigation/UserSection.module.css index 33da0be..868f779 100644 --- a/src/components/Navigation/UserSection.module.css +++ b/src/components/Navigation/UserSection.module.css @@ -4,15 +4,24 @@ .userSection { position: relative; + display: flex; + align-items: center; + gap: 0.5rem; padding: 0.5rem; border-top: 1px solid var(--border-color, #e0e0e0); } +/* Notification Bell */ +.notificationBell { + flex-shrink: 0; +} + .userButton { + flex: 1; + min-width: 0; display: flex; align-items: center; gap: 0.75rem; - width: 100%; padding: 0.5rem; border: none; border-radius: 8px; diff --git a/src/components/Navigation/UserSection.tsx b/src/components/Navigation/UserSection.tsx index 3fd0c7c..b78b874 100644 --- a/src/components/Navigation/UserSection.tsx +++ b/src/components/Navigation/UserSection.tsx @@ -8,6 +8,7 @@ import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { useCurrentUser } from '../../hooks/useUsers'; import { useMsal } from '@azure/msal-react'; +import { NotificationBell } from '../NotificationBell'; import styles from './UserSection.module.css'; export const UserSection: React.FC = () => { @@ -49,6 +50,9 @@ export const UserSection: React.FC = () => { return (
Bitte melden Sie sich an oder erstellen Sie ein Konto, um die Einladung anzunehmen.
++ {validation.targetUsername + ? `Bitte melden Sie sich als "${validation.targetUsername}" an, um die Einladung anzunehmen.` + : 'Bitte melden Sie sich an, um die Einladung anzunehmen.'} +
- Teilen Sie diesen Link mit dem eingeladenen Benutzer: + Einladung für Benutzer {showUrlModal.targetUsername}:
+ Dieser Link kann nur von Benutzer {showUrlModal.targetUsername} verwendet werden. +
{showUrlModal.email && ( -- Dieser Link kann nur von {showUrlModal.email} verwendet werden. +
+ {showUrlModal.emailSent + ? `✓ Email wurde an ${showUrlModal.email} gesendet` + : `Email-Adresse: ${showUrlModal.email} (nicht gesendet)`}
)}