From 73b55cbf37eed734797711e3abc25e3d58e6187a Mon Sep 17 00:00:00 2001 From: larbi Date: Sun, 19 Nov 2023 15:18:05 +0100 Subject: [PATCH] add tutorial button --- packages/client/src/App.tsx | 3 +- .../src/components/Tutorial/Tutorial.tsx | 29 ++ .../client/src/components/Tutorial/index.tsx | 1 + .../client/src/scenes/Menu/MenuComponent.tsx | 260 +----------------- packages/client/tsconfig.tsbuildinfo | 2 +- 5 files changed, 35 insertions(+), 260 deletions(-) create mode 100644 packages/client/src/components/Tutorial/Tutorial.tsx create mode 100644 packages/client/src/components/Tutorial/index.tsx diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index ffcf126..6c03b7e 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -28,7 +28,7 @@ import LanguageDetector from "i18next-browser-languagedetector"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { About } from "components/About"; - +import { Tutorial } from "components/Tutorial"; import { ConnectedRouter } from "connected-react-router"; const queryClient = new QueryClient(); @@ -82,6 +82,7 @@ const Content = () => { errorElement={} /> } /> + } /> } /> { + const { t } = useTranslation(); + + return ( + +
+ +
+
+ ); +}; diff --git a/packages/client/src/components/Tutorial/index.tsx b/packages/client/src/components/Tutorial/index.tsx new file mode 100644 index 0000000..a727772 --- /dev/null +++ b/packages/client/src/components/Tutorial/index.tsx @@ -0,0 +1 @@ +export * from "./Tutorial"; \ No newline at end of file diff --git a/packages/client/src/scenes/Menu/MenuComponent.tsx b/packages/client/src/scenes/Menu/MenuComponent.tsx index 04f1c1a..ce5fcef 100644 --- a/packages/client/src/scenes/Menu/MenuComponent.tsx +++ b/packages/client/src/scenes/Menu/MenuComponent.tsx @@ -19,6 +19,7 @@ import { GrowProps } from "@material-ui/core/Grow"; import { closeSignin, openLogin, openSignup } from "actions/Signin"; import { getButtonLink } from "components/ButtonLink"; import SigninDialog, { SigninState } from "components/Signin"; +import { Tutorial } from "components/Tutorial"; import * as React from "react"; import { useTranslation } from "react-i18next"; import { connect } from "react-redux"; @@ -118,264 +119,6 @@ const MenuComponent: React.FC = ({
+