]> git.localhorst.tv Git - alttp.git/commitdiff
add login button to group interface
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 27 Nov 2025 08:25:55 +0000 (09:25 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 27 Nov 2025 08:25:55 +0000 (09:25 +0100)
resources/js/components/groups/Interface.jsx

index 4e68b927f0e9e9575e58b040f70c99bb94d6e344..7dedc47e399ac8ad236775f9617647f84c3d4d39 100644 (file)
@@ -4,6 +4,7 @@ import { Button } from 'react-bootstrap';
 import { useTranslation } from 'react-i18next';
 
 import List from './List';
+import LoginButton from '../../app/User';
 import { getAssignedRounds, missingGroupAssignment } from '../../helpers/Tournament';
 import { useUser } from '../../hooks/user';
 
@@ -18,7 +19,10 @@ const GroupInterface = ({ actions, tournament }) => {
        }
 
        if (!user) {
-               return <div><p>{t('groups.loginRequired')}</p></div>
+               return <div>
+                       <p>{t('groups.loginRequired')}</p>
+                       <LoginButton />
+               </div>
        }
 
        if (missingGroupAssignment(tournament, user)) {