-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
321 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["@typescript-eslint"], | ||
"overrides": [ | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off" | ||
} | ||
} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react' | ||
import DesktopIconView from './DesktopIconView'; | ||
|
||
interface Props { | ||
func: () => void; | ||
src: string; | ||
txt: string; | ||
} | ||
|
||
export interface PropsType extends Props{ | ||
handleDbClick: (func: () => void, e: React.MouseEvent<Element, MouseEvent>) => void; | ||
} | ||
|
||
export default function DesktopIcon({func, src, txt} : Props) { | ||
const handleDbClick = (func: () => void, e: React.MouseEvent<Element, MouseEvent>) => { | ||
// 더블클릭 했다면 | ||
if (e.detail === 2) func(); | ||
}; | ||
|
||
const props: PropsType= { | ||
func, | ||
src, | ||
txt, | ||
handleDbClick | ||
} | ||
|
||
return ( | ||
<DesktopIconView {...props}/> | ||
) | ||
} |
3 changes: 2 additions & 1 deletion
3
...omponents/DesktopIcon/DesktopIconView.jsx → ...omponents/DesktopIcon/DesktopIconView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
...ry/src/components/DiaryList/DiaryList.jsx → ...ry/src/components/DiaryList/DiaryList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.