stripe changes

This commit is contained in:
2026-01-05 09:37:20 +01:00
parent d04d9d9887
commit 8f863153cb
5 changed files with 241 additions and 60 deletions

View File

@@ -1,5 +1,6 @@
import React, { useState, useEffect, useRef } from 'react';
import { Menu, X, Code2, User, LogIn, UserPlus, LogOut, LayoutDashboard, ShieldAlert } from 'lucide-react';
import { Menu, X, Code2, User, LogIn, UserPlus, LogOut, LayoutDashboard, ShieldAlert, Crown } from 'lucide-react';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { Button } from './Button';
import { useAuth } from '../context/AuthContext';
@@ -114,7 +115,11 @@ export const Navbar: React.FC = () => {
aria-label="Felhasználói fiók"
>
<User className="w-6 h-6" />
{isAdmin && <div className="absolute top-1 right-1 w-2.5 h-2.5 bg-red-500 rounded-full border-2 border-white"></div>}
{isAdmin && (
<div className="absolute -top-1 -right-1 bg-white rounded-full p-0.5 shadow-sm border border-gray-100">
<Crown className="w-3.5 h-3.5 text-yellow-500 fill-yellow-500" />
</div>
)}
</button>
{isProfileOpen && (
@@ -233,4 +238,4 @@ export const Navbar: React.FC = () => {
)}
</nav>
);
};
};