diff --git a/src/styles/TopBarText.styled.ts b/src/components/TopBarText.styled.ts similarity index 97% rename from src/styles/TopBarText.styled.ts rename to src/components/TopBarText.styled.ts index d3423f4..b5d5398 100644 --- a/src/styles/TopBarText.styled.ts +++ b/src/components/TopBarText.styled.ts @@ -5,6 +5,7 @@ export const StyledTopBarDiv = styled.div` justify-content: space-between; align-items: center; text-align: center; + width: 100%; `; export const StyledLeftDiv = styled.div` diff --git a/src/components/TopBarText.tsx b/src/components/TopBarText.tsx index c531ae6..8e92226 100644 --- a/src/components/TopBarText.tsx +++ b/src/components/TopBarText.tsx @@ -1,7 +1,7 @@ import { FC } from "react"; import logo from "@/assets/logo_space.svg"; import back from "@/assets/icon_back.svg"; -import * as sty from "@/styles/TopBarText.styled"; +import * as sty from "@/components/TopBarText.styled"; import { useNavigate } from "react-router-dom"; export enum LeftEnum { @@ -21,59 +21,53 @@ const TopBarText: FC = ({ left, center, right }) => { switch (left) { case "logo": return ( -
- - { - navigate("/"); - }} - > - - - - {center} - - - {right} - - -
+ + { + navigate("/"); + }} + > + + + + {center} + + + {right} + + ); case "back": return ( -
- - { - navigate(-1); - }} - > - - - - {center} - - - {right} - - -
+ + { + navigate(-1); + }} + > + + + + {center} + + + {right} + + ); case "none": return ( -
- - - - {center} - - - {right} - - -
+ + + + {center} + + + {right} + + ); } };