Skip to content

Commit

Permalink
Add implicit react imports
Browse files Browse the repository at this point in the history
  • Loading branch information
OMGDuke committed Mar 31, 2023
1 parent 143d82d commit 7f6a8fe
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/protonMedal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Navigation, ServerAPI } from 'decky-frontend-lib'
import { ReactElement, FC, CSSProperties, ReactNode } from 'react'
import React, { ReactElement, FC, CSSProperties, ReactNode } from 'react'
import { FaReact } from 'react-icons/fa'
import { IoLogoTux } from 'react-icons/io'

Expand Down
2 changes: 2 additions & 0 deletions src/components/protonMedal/style.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from 'react'

export default (
<style>{`
@font-face {
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react'
import { definePlugin, ServerAPI, staticClasses } from 'decky-frontend-lib'
import { FaReact } from 'react-icons/fa'

Expand Down
2 changes: 1 addition & 1 deletion src/lib/patchLibraryApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
findInReactTree,
appDetailsClasses
} from 'decky-frontend-lib'
import { ReactElement } from 'react'
import React, { ReactElement } from 'react'
import ProtonMedal from '../components/protonMedal'
import { SettingsProvider } from '../context/settingsContext'

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"jsx": "react",
"incremental": true,
"outDir": "dist",
},
Expand Down

0 comments on commit 7f6a8fe

Please sign in to comment.