@@ -12,6 +12,7 @@ import {
1212} from "../lib/api" ;
1313import toast from "react-hot-toast" ;
1414import { Plus , Menu , X , Lock , Crown , ShieldCheck , User } from "lucide-react" ;
15+ import ContactModal from "../components/ContactModal" ;
1516
1617export default function DashboardPage ( ) {
1718 const { isLoading, isAuthenticated, user, logout } = useAuth ( ) ;
@@ -24,6 +25,7 @@ export default function DashboardPage() {
2425 null
2526 ) ;
2627 const [ isMobileMenuOpen , setIsMobileMenuOpen ] = useState ( false ) ;
28+ const [ showContactModal , setShowContactModal ] = useState ( false ) ;
2729 const [ createForm , setCreateForm ] = useState < CreateVaultRequest > ( {
2830 name : "" ,
2931 description : "" ,
@@ -242,16 +244,22 @@ export default function DashboardPage() {
242244 </ Link >
243245
244246 { /* Desktop Navigation */ }
245- < div className = "hidden md:flex items-center space-x-4 " >
247+ < div className = "hidden md:flex items-center gap-1 " >
246248 < Link
247249 href = "/account"
248- className = "px-5 py-2.5 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-800/50 backdrop-blur-sm cursor-pointer"
250+ className = "px-4 py-2 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-800/50 backdrop-blur-sm cursor-pointer"
249251 >
250252 Account
251253 </ Link >
254+ < button
255+ onClick = { ( ) => setShowContactModal ( true ) }
256+ className = "px-4 py-2 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-800/50 backdrop-blur-sm cursor-pointer"
257+ >
258+ Contact
259+ </ button >
252260 < button
253261 onClick = { handleLogout }
254- className = "px-5 py-2.5 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-800/50 backdrop-blur-sm cursor-pointer"
262+ className = "px-4 py-2 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-800/50 backdrop-blur-sm cursor-pointer"
255263 >
256264 Logout
257265 </ button >
@@ -273,20 +281,29 @@ export default function DashboardPage() {
273281 { /* Mobile Menu */ }
274282 { isMobileMenuOpen && (
275283 < div className = "absolute top-full left-0 right-0 mt-2 mx-6 bg-slate-800/95 backdrop-blur-md rounded-xl border border-slate-700/50 shadow-2xl md:hidden z-50" >
276- < div className = "flex flex-col p-4 space-y- 2" >
284+ < div className = "flex flex-col p-2" >
277285 < Link
278286 href = "/account"
279287 onClick = { ( ) => setIsMobileMenuOpen ( false ) }
280- className = "px-5 py-3 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-700/50 cursor-pointer text-left block "
288+ className = "px-4 py-2.5 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-700/50 cursor-pointer text-left"
281289 >
282290 Account
283291 </ Link >
292+ < button
293+ onClick = { ( ) => {
294+ setShowContactModal ( true ) ;
295+ setIsMobileMenuOpen ( false ) ;
296+ } }
297+ className = "px-4 py-2.5 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-700/50 cursor-pointer text-left"
298+ >
299+ Contact
300+ </ button >
284301 < button
285302 onClick = { ( ) => {
286303 handleLogout ( ) ;
287304 setIsMobileMenuOpen ( false ) ;
288305 } }
289- className = "px-5 py-3 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-700/50 cursor-pointer text-left"
306+ className = "px-4 py-2.5 text-slate-300 hover:text-indigo-400 font-medium transition-colors rounded-lg hover:bg-slate-700/50 cursor-pointer text-left"
290307 >
291308 Logout
292309 </ button >
@@ -321,7 +338,6 @@ export default function DashboardPage() {
321338 < p className = "text-slate-400 text-lg" >
322339 You don't have any vaults yet.
323340 </ p >
324-
325341 </ div >
326342 ) : (
327343 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
@@ -646,6 +662,12 @@ export default function DashboardPage() {
646662 </ div >
647663 </ div >
648664 ) }
665+
666+ { /* Contact Modal */ }
667+ < ContactModal
668+ isOpen = { showContactModal }
669+ onClose = { ( ) => setShowContactModal ( false ) }
670+ />
649671 </ div >
650672 ) ;
651673}
0 commit comments