Skip to content

Commit 92f4b9b

Browse files
committed
fix eslint errors
1 parent cc2cb38 commit 92f4b9b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/nextjs-app/app/components/AppShellBar.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
List,
88
ListPropTypes,
99
ResponsivePopover,
10-
ResponsivePopoverDomRef,
1110
ShellBar,
1211
ShellBarItem,
1312
ShellBarItemPropTypes,
@@ -66,7 +65,7 @@ export function AppShellBar() {
6665
className={classes.popover}
6766
open={popoverOpen}
6867
opener={popoverOpenerRef.current}
69-
onClose={(e) => {
68+
onClose={() => {
7069
setPopoverOpen(false);
7170
}}
7271
>

examples/nextjs-pages/pages/api/todos/[id].ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export async function fetchTodoById(id: string): Promise<Todo | undefined> {
77
return todos.find((todo) => `${todo.id}` === id);
88
}
99

10-
export default async function handler(req: NextApiRequest, res: NextApiResponse<Todo>) {
10+
export default async function handler(req: NextApiRequest, res: NextApiResponse<Todo | { error: string }>) {
1111
const todo = await fetchTodoById(req.query.id as string);
1212
if (todo) {
1313
res.status(200).json(todo);
1414
} else {
15-
res.status(404).json({ error: 'Not found' } as any);
15+
res.status(404).json({ error: 'Not found' });
1616
}
1717
}

0 commit comments

Comments
 (0)