From 9b2f3fe0ee791bf507f8185d8d3608cdc61ececb Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Mon, 20 May 2024 13:15:23 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20assets=20to=20public=20fo?= =?UTF-8?q?lder=20(#1206)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 2 +- .../{src => public}/assets/images/fastapi-logo.svg | 0 frontend/{src => public}/assets/images/favicon.png | Bin frontend/src/components/Common/Sidebar.tsx | 2 +- frontend/src/routes/login.tsx | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename frontend/{src => public}/assets/images/fastapi-logo.svg (100%) rename frontend/{src => public}/assets/images/favicon.png (100%) diff --git a/frontend/index.html b/frontend/index.html index ce11e5ad012..57621a268ba 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,7 +5,7 @@ Full Stack FastAPI Project - +
diff --git a/frontend/src/assets/images/fastapi-logo.svg b/frontend/public/assets/images/fastapi-logo.svg similarity index 100% rename from frontend/src/assets/images/fastapi-logo.svg rename to frontend/public/assets/images/fastapi-logo.svg diff --git a/frontend/src/assets/images/favicon.png b/frontend/public/assets/images/favicon.png similarity index 100% rename from frontend/src/assets/images/favicon.png rename to frontend/public/assets/images/favicon.png diff --git a/frontend/src/components/Common/Sidebar.tsx b/frontend/src/components/Common/Sidebar.tsx index 7582fb4748e..3cc522cc573 100644 --- a/frontend/src/components/Common/Sidebar.tsx +++ b/frontend/src/components/Common/Sidebar.tsx @@ -15,7 +15,7 @@ import { import { useQueryClient } from "@tanstack/react-query" import { FiLogOut, FiMenu } from "react-icons/fi" -import Logo from "../../assets/images/fastapi-logo.svg" +import Logo from "/assets/images/fastapi-logo.svg" import type { UserPublic } from "../../client" import useAuth from "../../hooks/useAuth" import SidebarItems from "./SidebarItems" diff --git a/frontend/src/routes/login.tsx b/frontend/src/routes/login.tsx index b2ee1f62c61..39b6dc75602 100644 --- a/frontend/src/routes/login.tsx +++ b/frontend/src/routes/login.tsx @@ -20,7 +20,7 @@ import { } from "@tanstack/react-router" import { type SubmitHandler, useForm } from "react-hook-form" -import Logo from "../assets/images/fastapi-logo.svg" +import Logo from "/assets/images/fastapi-logo.svg" import type { Body_login_login_access_token as AccessToken } from "../client" import useAuth, { isLoggedIn } from "../hooks/useAuth" import { emailPattern } from "../utils"