Skip to content

Commit

Permalink
feat: 타입스크립트 paths, baseUrl 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
GihoKo committed Jul 14, 2024
1 parent 4808741 commit bb16812
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/Organisms/Content/ChannelItem.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import styled from 'styled-components';
import { Channel } from '../../../types/channel';
import { Link } from 'react-router-dom';
import TagContainer from './../../Molcules/Content/TagContainer';

import mockImage from '../../../images/dummyImage.png';
import personSvg from '../../../images/svg/person.svg';
import TagContainer from '../../Molecules/Content/TagContainer';

interface ChannelItemProps {
channel: Channel;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Organisms/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components';
import useHeader from './Header.hook';
import Logo from '../../Molcules/Header/Logo';
import UserProfileImage from '../../Molcules/Header/UserProfileImage';
import UserProfileImage from '../../Molecules/Header/UserProfileImage';
import Logo from '../../Molecules/Header/Logo';

export default function Header() {
// logics
Expand Down
8 changes: 4 additions & 4 deletions src/components/Organisms/SiderBar/SideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import styled from 'styled-components';
import useSideBar from './SideBar.hook';

// components
import ChannelContainer from '../../Molcules/SideBar/ChannelContainer';
import CreateChannelButton from '../../Molcules/SideBar/CreateChannelButton';
import SideBarToggleButton from '../../Molcules/SideBar/SideBarToggleButton';
import CreateChannelModal from '../Modal/CreateChannelModal';
import NavigatorContainer from '../../Molcules/SideBar/NavigatorContainer';
import CategoryName from '../../Atoms/SideBar/CategoryName';
import SideBarToggleButton from '../../Molecules/SideBar/SideBarToggleButton';
import CreateChannelButton from '../../Molecules/SideBar/CreateChannelButton';
import NavigatorContainer from '../../Molecules/SideBar/NavigatorContainer';
import ChannelContainer from '../../Molecules/SideBar/ChannelContainer';

export default function SideBar() {
// logics
Expand Down
16 changes: 15 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,21 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx"
"jsx": "react-jsx",
"baseUrl": "./",
"paths": {
"@/*": ["src/*"],
"@/apis/*": ["src/apis/*"],
"@/components/*": ["src/components/*"],
"@/images/*": ["src/images/*"],
"@/mocks/*": ["src/mocks/*"],
"@/pages/*": ["src/pages/*"],
"@/router/*": ["src/router/*"],
"@/store/*": ["src/store/*"],
"@/styles/*": ["src/styles/*"],
"@/types/*": ["src/types/*"],
"@/utils/*": ["src/utils/*"]
}
},
"include": ["src", "src/styles", "utils", "custom.d.ts"]
}

0 comments on commit bb16812

Please sign in to comment.