Skip to content

Commit

Permalink
Fix: non-relative path error
Browse files Browse the repository at this point in the history
  • Loading branch information
yisu-kim committed Aug 19, 2021
1 parent e6edfd6 commit 4f77c35
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
16 changes: 8 additions & 8 deletions src/components/todo/template/create/TodoCreate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import styled from "styled-components";
import { PlusCircleOutlined } from "@ant-design/icons";
import { Itodo } from "components/todo/TodoService";
import React, { useState } from 'react';
import styled from 'styled-components';
import { PlusCircleOutlined } from '@ant-design/icons';
import { Itodo } from 'src/components/todo/TodoService';

const CircleButton = styled.button<{ open: boolean }>`
background: #33bb77;
Expand Down Expand Up @@ -58,10 +58,10 @@ interface TodoCreateProps {
const TodoCreate = ({
nextId,
createTodo,
incrementNextId
incrementNextId,
}: TodoCreateProps) => {
const [open, setOpen] = useState(false);
const [value, setValue] = useState("");
const [value, setValue] = useState('');

const handleToggle = () => setOpen(!open);
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) =>
Expand All @@ -73,11 +73,11 @@ const TodoCreate = ({
createTodo({
id: nextId,
text: value,
done: false
done: false,
});
incrementNextId(); // nextId 하나 증가

setValue(""); // input 초기화
setValue(''); // input 초기화
setOpen(false); // open 닫기
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/todo/template/footer/TodoFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Itodo } from 'components/todo/TodoService';
import { Itodo } from 'src/components/todo/TodoService';
import React from 'react';
import styled from 'styled-components';

Expand Down
8 changes: 4 additions & 4 deletions src/components/todo/template/list/TodoList.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Itodo } from "components/todo/TodoService";
import React from "react";
import styled from "styled-components";
import TodoItem from "./item/TodoItem";
import { Itodo } from 'src/components/todo/TodoService';
import React from 'react';
import styled from 'styled-components';
import TodoItem from './item/TodoItem';

const TodoListBlock = styled.div`
flex: 1;
Expand Down
8 changes: 4 additions & 4 deletions src/components/todo/template/list/item/TodoItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CheckOutlined, DeleteOutlined } from "@ant-design/icons";
import { Itodo } from "components/todo/TodoService";
import React from "react";
import styled, { css } from "styled-components";
import { CheckOutlined, DeleteOutlined } from '@ant-design/icons';
import { Itodo } from 'src/components/todo/TodoService';
import React from 'react';
import styled, { css } from 'styled-components';

const Remove = styled.div`
display: flex;
Expand Down
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -14,7 +18,10 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"baseUrl": "."
},
"include": ["src"]
"include": [
"src"
]
}

0 comments on commit 4f77c35

Please sign in to comment.