diff --git a/src/Components/Auth/useAuth.tsx b/src/Components/Auth/useAuth.tsx index 6f8903b2..8b1c924f 100644 --- a/src/Components/Auth/useAuth.tsx +++ b/src/Components/Auth/useAuth.tsx @@ -17,7 +17,7 @@ type AuthCredentials = { type AuthContextProps = { - isAuthenticated: Boolean, + isAuthenticated: boolean, user: UserItem | null; login: (credentials: AuthCredentials) => Promise, register: (credentials: AuthCredentials, userName: string) => Promise, @@ -41,7 +41,7 @@ const AuthContext = createContext({ export const AuthProvider = ({ userApi, children }: AuthProviderProps) => { const [user, setUser] = useState(null); const [token, setToken] = useState(null); - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(false); const isAuthenticated = !!user; useEffect(() => { diff --git a/src/Components/Gaming/Modal.tsx b/src/Components/Gaming/Modal.tsx index 9b5a7299..035a74fa 100644 --- a/src/Components/Gaming/Modal.tsx +++ b/src/Components/Gaming/Modal.tsx @@ -9,15 +9,17 @@ type ChapterProps = { export function Welcome1({ clickAction }: ChapterProps) { return ( <> -

Herzlich Willkommen, schön dass du da bist!

+

Welcome, glad you are here!

- Wir erschaffen zusammen eine Welt, in der wir frei und menschlich zusammen leben dürfen. - Dafür bauen wir ein Netzwerk in dem wir uns im echten Leben begegnen und helfen - ... ganz ohne Geld 😉 + Let's play a game together where we explore ourselves and our dreams and come together to make them come true.

- Hast du Lust mitzumachen?

+ Would you like to join us?

- + + + + +
) @@ -26,19 +28,31 @@ export function Welcome1({ clickAction }: ChapterProps) { export function Welcome2({ clickAction }: ChapterProps) { return ( <> -

Veränderung passiert im echten Leben

+

Imagine ...

- Mal ganz ehrlich: 99% unser Zeit am Bildschirm ist sinnlose Zeit- und Energie-Verschwendung. -

- Darum tauchen wir wieder in das echte Leben ein und nutzen digitale Medien nur dort, wo sie uns wirklich helfen in echt zusammen zu kommen

+ you wake up sometime in the early twenties of the 21st century on planet Earth from a hypnosis that has somehow kept you and all other people under some kind of external control all your life. +

- +
) } export function Welcome3({ clickAction }: ChapterProps) { + return ( + <> +

Many people ...

+

+ are still trapped in old and dysfunctional structures. But magically, a new consciousness is suddenly rising. More and more people are awakening from hypnosis.

+
+ +
+ + ) +} + +export function Welcome4({ clickAction }: ChapterProps) { return ( <>

Gemeinsam erschaffen wir Strukturen

@@ -56,14 +70,16 @@ export function Welcome3({ clickAction }: ChapterProps) { ) } +const close = () => { + window.my_modal_3.close(); +} + export function Modal() { const [chapter, setChapter] = useState(1); - const close = () => { - window.my_modal_3.close(); - } + const ActiveChapter = () => { switch (chapter) { @@ -97,4 +113,3 @@ export function Modal() { ) } - diff --git a/src/Components/Gaming/Quests.tsx b/src/Components/Gaming/Quests.tsx index fc5b94e4..dc11e085 100644 --- a/src/Components/Gaming/Quests.tsx +++ b/src/Components/Gaming/Quests.tsx @@ -1,9 +1,12 @@ import * as React from 'react' +import { useAuth } from '../Auth'; export function Quests() { const [open, setOpen] = React.useState(true); + const { isAuthenticated, user } = useAuth(); + if (open) return ( <>
@@ -13,10 +16,10 @@ export function Quests() {

Level 1

    -
  • -
  • -
  • -
  • +
  • +
  • +
  • +