From 87e9dc9da4c13dd968090f65e29b45c9dc260494 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Wed, 24 Jun 2026 12:21:41 -0400 Subject: [PATCH] Back link --- web/src/components/AvatarBox.jsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/web/src/components/AvatarBox.jsx b/web/src/components/AvatarBox.jsx index 37c85d4e..d924a1c3 100644 --- a/web/src/components/AvatarBox.jsx +++ b/web/src/components/AvatarBox.jsx @@ -1,6 +1,8 @@ import * as React from "react"; import { Avatar, Box, styled } from "@mui/material"; +import { NavLink } from "react-router-dom"; import logo from "../img/ntfy-filled.svg"; +import routes from "./routes"; const AvatarBoxContainer = styled(Box)` display: flex; @@ -13,11 +15,15 @@ const AvatarBoxContainer = styled(Box)` max-width: min(400px, 90dvw); margin: auto; `; -const AvatarBox = (props) => ( - - - {props.children} - -); +const AvatarBox = (props) => { + const avatar = ; + return ( + + {/* The logo links back to the app, unless login is forced (no app to go back to without signing in) */} + {config.require_login ? avatar : {avatar}} + {props.children} + + ); +}; export default AvatarBox;