Skip to content

Commit

Permalink
Merge pull request #327 from LikeLion-at-DGU/dev
Browse files Browse the repository at this point in the history
🚀 Deploy
  • Loading branch information
Chaem03 authored Aug 5, 2024
2 parents cf637ce + 31f7901 commit 9e597cc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
15 changes: 6 additions & 9 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,18 @@ const Content = styled.div`

const Layout = () => {
const location = useLocation();
const excludePaths = [/^\/login/, /^\/signup/, /^\/agree\/[0-1]/];

const isExcludedPath = excludePaths.some((regex) =>
regex.test(location.pathname)
);

return (
<Frame>
<Wrapper>
<Content>
<Outlet />
{location.pathname === "/login" ||
location.pathname === "/signup" ||
location.pathname === "/signup/custom" ||
location.pathname === "/agree/0" ||
location.pathname === "/agree/1" ? (
<></>
) : (
<Footer />
)}
{isExcludedPath ? <></> : <Footer />}
</Content>
</Wrapper>
</Frame>
Expand Down
5 changes: 0 additions & 5 deletions src/components/DateRangeCalendar/DateRangeCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ const DateRangeCalendar = () => {
} else {
console.log("No date selected");
}

setSelectedStartDate(formattedStartDate);
setSelectedEndDate(formattedEndDate);
setIsCalendarVisible(false);
setIsCheckVisible(true);
};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/mainRoutineBox/MainRoutineBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function MainRoutineBox({
</S.TitleContainer>
<S.BoxContent>
{contentArray.map((line, index) => (
<div key={index}>{line.trim()}</div>
<div key={index}>{line.trim()}</div>
))}
</S.BoxContent>
</S.BoxContainer>
Expand Down
14 changes: 7 additions & 7 deletions src/pages/NotFound/NotFount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const NotFound = () => {
<p
style={{
color: "white",
fontSize: "70px",
fontSize: "80px",
fontFamily: "AppleSDGothicNeoB",
fontWeight: "400",
fontWeight: "700",
lineHeight: "20px",
}}
>
Expand All @@ -47,9 +47,9 @@ export const NotFound = () => {
<p
style={{
color: "white",
fontSize: "20px",
fontSize: "25px",
fontFamily: "AppleSDGothicNeoB",
fontWeight: "400",
fontWeight: "700",
lineHeight: "20px",
}}
>
Expand All @@ -58,9 +58,9 @@ export const NotFound = () => {
<p
style={{
color: "white",
fontSize: "20px",
fontSize: "25px",
fontFamily: "AppleSDGothicNeoB",
fontWeight: "400",
fontWeight: "700",
lineHeight: "20px",
}}
>
Expand All @@ -73,7 +73,7 @@ export const NotFound = () => {
color: "white",
fontSize: "20px",
fontFamily: "AppleSDGothicNeoL",
fontWeight: "400",
fontWeight: "200",
lineHeight: "20px",
marginTop: "1rem",
}}
Expand Down

0 comments on commit 9e597cc

Please sign in to comment.