mirror of
https://github.com/Motion-Games/MotionWebStudio.git
synced 2026-04-21 09:00:53 +02:00
stripe changes
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user