From c535650158ae976468dc3f26b028cbabdae1e50c Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 20 Jul 2024 13:01:24 +0200 Subject: [PATCH] Create Logo login component --- .../src/states/Login/components/Logo/Logo.jsx | 15 +++++++++++++++ .../src/states/Login/components/Logo/index.js | 1 + 2 files changed, 16 insertions(+) create mode 100644 dashboard/src/states/Login/components/Logo/Logo.jsx create mode 100644 dashboard/src/states/Login/components/Logo/index.js diff --git a/dashboard/src/states/Login/components/Logo/Logo.jsx b/dashboard/src/states/Login/components/Logo/Logo.jsx new file mode 100644 index 0000000..6c57f38 --- /dev/null +++ b/dashboard/src/states/Login/components/Logo/Logo.jsx @@ -0,0 +1,15 @@ +import {Stack, Typography, useTheme} from "@mui/material"; +import DarkLogo from "@/common/assets/images/logo/small-dark.webp"; +import LightLogo from "@/common/assets/images/logo/small-light.webp"; + +export const Logo = () => { + const theme = useTheme(); + const logo = theme.palette.mode === "dark" ? DarkLogo : LightLogo; + + return ( + + Logo + LicenseAPI + + ) +} \ No newline at end of file diff --git a/dashboard/src/states/Login/components/Logo/index.js b/dashboard/src/states/Login/components/Logo/index.js new file mode 100644 index 0000000..bed3f4a --- /dev/null +++ b/dashboard/src/states/Login/components/Logo/index.js @@ -0,0 +1 @@ +export {Logo as default} from "./Logo.jsx"; \ No newline at end of file