Просмотр исходного кода

Add WiFi Setup shortcut to hamburger menu

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 4 месяцев назад
Родитель
Сommit
3a40b6e999
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      frontend/src/components/layout/Layout.tsx

+ 17 - 0
frontend/src/components/layout/Layout.tsx

@@ -1570,6 +1570,13 @@ export function Layout() {
                     <span className="material-icons-outlined text-xl">article</span>
                     <span className="material-icons-outlined text-xl">article</span>
                     View Logs
                     View Logs
                   </button>
                   </button>
+                  <button
+                    onClick={() => navigate('/wifi-setup')}
+                    className="flex items-center gap-3 w-full px-3 py-2 text-sm rounded-md hover:bg-accent transition-colors"
+                  >
+                    <span className="material-icons-outlined text-xl">wifi</span>
+                    WiFi Setup
+                  </button>
                   <Separator className="my-1" />
                   <Separator className="my-1" />
                   <button
                   <button
                     onClick={handleRestart}
                     onClick={handleRestart}
@@ -1648,6 +1655,16 @@ export function Layout() {
                     <span className="material-icons-outlined text-xl">article</span>
                     <span className="material-icons-outlined text-xl">article</span>
                     View Logs
                     View Logs
                   </button>
                   </button>
+                  <button
+                    onClick={() => {
+                      navigate('/wifi-setup')
+                      setIsMobileMenuOpen(false)
+                    }}
+                    className="flex items-center gap-3 w-full px-3 py-2 text-sm rounded-md hover:bg-accent transition-colors"
+                  >
+                    <span className="material-icons-outlined text-xl">wifi</span>
+                    WiFi Setup
+                  </button>
                   <Separator className="my-1" />
                   <Separator className="my-1" />
                   <button
                   <button
                     onClick={() => {
                     onClick={() => {