From 42ac4adadf847e542b237d992c09b34e2e108b19 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Mon, 26 May 2025 04:09:04 -0400 Subject: [PATCH] fix release and linting --- .gitea/workflows/release.yml | 6 +++--- src/pages/nodes/[clientId].tsx | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 9bd72f9..dbcbd56 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest env: DOCKER_LATEST: nightly - CONTAINER_NAME: drb-client-discord-bot + CONTAINER_NAME: drb-frontend steps: - name: Checkout uses: actions/checkout@v4 @@ -53,5 +53,5 @@ jobs: linux/arm64 push: true tags: | # replace it with your local IP and tags - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} - git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} \ No newline at end of file + git.vpn.cusano.net/logan/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} + git.vpn.cusano.net/logan/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }} \ No newline at end of file diff --git a/src/pages/nodes/[clientId].tsx b/src/pages/nodes/[clientId].tsx index cfb2906..e74b440 100644 --- a/src/pages/nodes/[clientId].tsx +++ b/src/pages/nodes/[clientId].tsx @@ -10,8 +10,8 @@ import {Button} from '@/components/ui/button'; const ClientDetailPage: React.FC = () => { const router = useRouter(); - const { clientId } = router.query; // Get clientId from the URL - const { user, loading, token, hasPermission } = useAuth(); + const { clientId } = router.query; + const { user, loading, token, hasPermission, logout } = useAuth(); // Call useAuth once here if (loading) { return
Loading Authentication...
; @@ -50,12 +50,12 @@ const ClientDetailPage: React.FC = () => {

Radio App Admin

Logged in as: {user.username} ({user.role}) - {/* Add a back button */} - + + {/* Use the destructured logout */}
- +
);