Skip to content

Commit

Permalink
local small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
humoyun committed Nov 25, 2020
1 parent b56c7c2 commit 9641af6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/AdvancedSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import { Box, Flex, InputGroup, InputLeftElement, Input, InputRightElement, TagLabel, TagCloseButton, Tag } from '@chakra-ui/core'
// import NextLink from 'next/link'
// import { useMeQuery, useLogoutMutation } from '../generated/graphql'
import SearchIcon from '../icons/search.svg'
import SearchIcon from '@/icons/search.svg'
// import { useRouter } from 'next/router'

export interface SearchProps {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { useState } from 'react'
import { useRouter } from 'next/router'
import { Flex, Box, Heading, Avatar, Text } from '@chakra-ui/core'
import Downvote from '../icons/arrow-down.svg'
import Upvote from '../icons/arrow-up.svg'
import Dot from '../icons/dot.svg'
import Downvote from '@/icons/arrow-down.svg'
import Upvote from '@/icons/arrow-up.svg'
import Dot from '@/icons/dot.svg'
import styled from '@emotion/styled'
import PostFooter from './PostFooter'
import { Post } from '../generated/graphql'
import { Post } from '@/generated/graphql'

interface PostProps {
post: Partial<Post>;
Expand Down
6 changes: 5 additions & 1 deletion src/svg-file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@


declare module '*.svg' {

const content: any
export default content
}
}

14 changes: 9 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"target": "es5",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
"@/*": [
"src/*"
]
},
"lib": [
"dom",
Expand All @@ -19,16 +21,18 @@
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"noUnusedLocals": true,
"noUnusedParameters": true
"noUnusedParameters": true,
"isolatedModules": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx", "next.config.js",
"src/icons", "src/svg-file.d.ts"
"**/*.tsx",
"next.config.js",
"src/icons",
"src/svg-file.d.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 9641af6

Please sign in to comment.