Skip to content

Commit

Permalink
Refactor: refactor TemplateBody import and styled-components #84
Browse files Browse the repository at this point in the history
  • Loading branch information
sinji2102 committed Oct 9, 2023
1 parent 486b420 commit a4fa07c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/common/template/TemplateBody.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { styled } from "styled-components";
import React, { useState, useEffect } from "react";
import axios from "axios";
import { useRecoilState, useRecoilValue } from "recoil";
import Typography from "@mui/material/Typography";
import { WidthFull } from "@mui/icons-material";
import {
templateContent,
templatePreviewState,
templateState,
templateToModal,
} from "../../../recoil/templateState";
import { useRecoilState, useRecoilValue } from "recoil";
import { styled } from "styled-components";
import { WidthFull } from "@mui/icons-material";
import MarkdownPreview from "@uiw/react-markdown-preview";
import axios from "axios";


// props -> type(pr, readme, contributing)
export default function TemplateBody(props) {
Expand All @@ -33,9 +34,9 @@ export default function TemplateBody(props) {

const BodyBox = styled.div`
display: flex;
flex-direction: column;
max-height: 52rem;
max-width: 65rem;
flex-direction: column;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
Expand Down

0 comments on commit a4fa07c

Please sign in to comment.