Skip to content

Commit 094d522

Browse files
committed
Update code to make it pass ESLint rules
1 parent cdb2e63 commit 094d522

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const WebdevHome: FC = () => {
7070
// #region customize feature
7171
interface CustomizeFeature {
7272
hiddenLinks: HiddenLinks
73-
handleCustomizeAction (): void
73+
handleCustomizeAction: () => void
7474
}
7575

7676
function useCustomizeFeature (): CustomizeFeature {
@@ -101,7 +101,7 @@ function useCustomizeFeature (): CustomizeFeature {
101101

102102
// #region search feature
103103
interface SearchFeature {
104-
handleSearchAction (): void
104+
handleSearchAction: () => void
105105
latestKeypress: string
106106
}
107107

src/components/AppAction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { classes } from '../utils/jsx'
55
interface AppActionProps {
66
icon: string
77
active: boolean
8-
action(): void
8+
action: () => void
99
}
1010

1111
export const AppAction: FC<AppActionProps> = memo(({

src/components/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Link: FC<LinkProps> = memo(({
2222
title, url, icon, color, searchable = false,
2323
customize = false, visible = true, focus = false
2424
}) => {
25-
function handleLinkClick(event: MouseEvent<HTMLAnchorElement>): void {
25+
function handleLinkClick (event: MouseEvent<HTMLAnchorElement>): void {
2626
if (customize) {
2727
event.preventDefault()
2828
toggleLink(url)

0 commit comments

Comments
 (0)