Skip to content

Commit c1dc124

Browse files
committed
fix: typing updated
1 parent 4ba7447 commit c1dc124

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/Tags.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const StatusCodeTag: FC<CustomTagProps & { statusCode: number }> = ({
1818
reversed,
1919
...props
2020
}) => (
21-
<Tag {...props} variant={getStatusColor(statusCode)}>
21+
<Tag {...props} variant={getStatusColor(statusCode)} title="status code" placeholder={undefined}>
2222
{reversed && '!'}
2323
{statusCode}
2424
</Tag>
@@ -29,7 +29,7 @@ export const MethodTag: FC<CustomTagProps & { method: string }> = ({
2929
reversed,
3030
...props
3131
}) => (
32-
<Tag {...props}>
32+
<Tag {...props} title="method" placeholder={undefined}>
3333
{reversed && '!'}
3434
{method}
3535
</Tag>
@@ -40,7 +40,7 @@ export const ClusterTag: FC<CustomTagProps & { cluster: string }> = ({
4040
reversed,
4141
...props
4242
}) => (
43-
<Tag {...props} variant="blue" title="cluster">
43+
<Tag {...props} variant="blue" title="cluster" placeholder={undefined}>
4444
{reversed && '!'}
4545
{cluster}
4646
</Tag>
@@ -51,7 +51,7 @@ export const IndexTag: FC<CustomTagProps & { index: string | null }> = ({
5151
reversed,
5252
...props
5353
}) => (
54-
<Tag {...props} variant="accent" title="index">
54+
<Tag {...props} variant="accent" title="index" placeholder={undefined}>
5555
{reversed && '!'}
5656
{index || 'no index'}
5757
</Tag>
@@ -62,7 +62,7 @@ export const ApiSubPathTag: FC<CustomTagProps & { subPath: string | null }> = ({
6262
reversed,
6363
...props
6464
}) => (
65-
<Tag {...props} variant="pink" title="api path">
65+
<Tag {...props} variant="pink" title="api path" placeholder={undefined}>
6666
{reversed && '!'}
6767
{subPath || 'no API path'}
6868
</Tag>
@@ -80,7 +80,7 @@ const apiString: Record<ApiType, string> = {
8080
};
8181

8282
export const ApiTag: FC<CustomTagProps & { api: ApiType }> = ({ api, reversed, ...props }) => (
83-
<Tag {...props} variant="orange" title="API">
83+
<Tag {...props} variant="orange" title="API" placeholder={undefined}>
8484
{reversed && '!'}
8585
{apiString[api]}
8686
</Tag>

src/pages/devtools/Page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const Page: FC = () => {
116116
variant="subtle"
117117
size="large"
118118
title="extension settings"
119-
onClick={(): void => chrome.runtime.openOptionsPage()}
119+
onClick={(): void => chrome.runtime.openOptionsPage(() => {})}
120120
/>
121121
</header>
122122
<div className="h-[calc(100vh-3rem)] bg-grey-100 relative overflow-x-hidden">

0 commit comments

Comments
 (0)