Skip to content

Commit

Permalink
refactor: 고객센터 style 코드 분리 #80
Browse files Browse the repository at this point in the history
  • Loading branch information
imdaxsz committed Oct 16, 2023
1 parent 7b93831 commit c075d07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
17 changes: 1 addition & 16 deletions src/features/common/routes/HelpDesk/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import styled from "@emotion/styled";
import { CaretLeft } from "@phosphor-icons/react";
import { useState } from "react";
import { useNavigate } from "react-router";
Expand All @@ -8,6 +7,7 @@ import Header from "@/components/Layout/Header";

import Form from "./Form";
import Select from "./Select";
import { HelpDeskContainer, Slide } from "./style";
import Success from "./Success";

export default function HelpDesk() {
Expand Down Expand Up @@ -65,18 +65,3 @@ export default function HelpDesk() {
</>
);
}

const HelpDeskContainer = styled.div`
width: 100%;
height: 100%;
padding-bottom: 66px;
overflow: hidden;
`;

const Slide = styled.div<{ translateX?: number }>`
width: 200%;
height: calc(100% - 60px);
display: flex;
transform: ${({ translateX = 0 }) => `translateX(${translateX}%)`};
transition: all 0.3s;
`;
15 changes: 15 additions & 0 deletions src/features/common/routes/HelpDesk/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import styled from "@emotion/styled";

export const HelpDeskContainer = styled.div`
width: 100%;
height: calc(100dvh - 66px);
overflow: hidden;
`;

export const Slide = styled.div<{ translateX?: number }>`
width: 200%;
height: calc(100% - 60px);
display: flex;
transform: ${({ translateX = 0 }) => `translateX(${translateX}%)`};
transition: all 0.3s;
`;

0 comments on commit c075d07

Please sign in to comment.