Skip to content

Commit

Permalink
fix: fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanzyTHEbar committed Feb 5, 2023
1 parent 77f935d commit 8aeb86a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions GUI/ETVR/src/components/WebSerial/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
declare global {
declare module 'solid-js' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
'esp-web-install-button': any
'esp-web-install-button': any // replace any with the type of props
}
}
}
Expand All @@ -18,7 +18,11 @@ const WebSerial = () => {
return (
<div>
<esp-web-install-button overrides={checkSameFirmware} manifest="firmware/manifest.json">
<button class="rounded-[8px] bg-blue-700 p-2 text-white mt-1 hover:bg-blue-600 focus:bg-blue-500" slot="activate">Custom install button</button>
<button
class="rounded-[8px] bg-blue-700 p-2 text-white mt-1 hover:bg-blue-600 focus:bg-blue-500"
slot="activate">
Custom install button
</button>
<span slot="unsupported">Ah snap, your browser doesn't work!</span>
<span slot="not-allowed">Ah snap, you are not allowed to use this on HTTP!</span>
</esp-web-install-button>
Expand Down

0 comments on commit 8aeb86a

Please sign in to comment.