Skip to content

Commit

Permalink
Refactor : code refactor in accordance with conventions #92
Browse files Browse the repository at this point in the history
  • Loading branch information
ancy0 committed Oct 10, 2023
1 parent d01adf2 commit 055a492
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
12 changes: 5 additions & 7 deletions src/components/step1/GitignoreContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,15 @@ import styled from "styled-components";
import { COLOR } from "../../styles/color";

import { useRecoilState, useRecoilValue } from "recoil";
import {
repoDataAtomFamily,
showAllGitignoreState,
} from "../../recoil/repoData";

import { Button, Typography } from "@mui/material";
import { BaseModal } from "../common/modal/BaseModal";
import { GitignoreModal } from "../common/modal/GitignoreModal";
import { ReadonlyAuto } from "../common/ReadOnlyAuto";
import { modalState } from "../../recoil/commonState";
import { BaseModal2 } from "../common/modal/BaseModal2";
import {
repoDataAtomFamily,
showAllGitignoreState,
} from "../../recoil/repoData";

/* for gitignore */
export const GitIgnoreContainer = () => {
Expand Down Expand Up @@ -54,8 +52,8 @@ const StGitIgnoreContainer = styled.div`

const Header = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
flex-direction: row;
`;

const SharedTextStyle = `
Expand Down
9 changes: 4 additions & 5 deletions src/components/step1/RequiredFieldContainer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import styled from "styled-components";
import { TextInputContainer } from "../common/InputComponent";
import { useState } from "react";
import axios from "axios";
import { useEffect } from "react";
import { useState, useEffect } from "react";
import { useRecoilState } from "recoil";
import { Grid } from "@mui/material";
import axios from "axios";
import { TextInputContainer } from "../common/InputComponent";
import { SelectAuto } from "../common/SelectAuto";
import { useRecoilState } from "recoil";
import { repoDataAtomFamily } from "../../recoil/repoData";

/* for Owner, RepoName, Description */
Expand Down
5 changes: 2 additions & 3 deletions src/components/step1/SelectContainer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import styled from "styled-components";
import { useRecoilState } from "recoil";

import { useEffect, useState } from "react";
import { useRecoilState } from "recoil";
import { Grid, Typography } from "@mui/material";
import axios from "axios";
import { AutocompleteInput } from "../common/Autocomplete";
import { repoDataAtomFamily } from "../../recoil/repoData";
import { Grid, Typography } from "@mui/material";

/* for select Language & Framework */
export const SelectContainer = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/CreateRepoPage.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import styled from "styled-components";
import { useEffect } from "react";

import { useRecoilState, useRecoilValue } from "recoil";
import { Grid } from "@mui/material";
import { GitIgnoreContainer } from "../components/step1/GitignoreContainer";
import { SelectContainer } from "../components/step1/SelectContainer";
import { RequiredFieldContainer } from "../components/step1/RequiredFieldContainer";
import { useRecoilState, useRecoilValue } from "recoil";
import { eachStepState } from "../recoil/commonState";
import { repoDataAtomFamily } from "../recoil/repoData";

Expand Down

0 comments on commit 055a492

Please sign in to comment.