Skip to content

Commit

Permalink
Runs prettier to fix JS formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lukbukkit committed Sep 4, 2023
1 parent 54500df commit a6f7bcc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resources/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion resources/src/Data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const DataFetcher = (props: PropsWithChildren<{ error: ReactElement; loading: Re
(error) => {
setError(error.toString())
setIsLoaded(true)
}
},
)
}, [])
// [] = only run on component mount
Expand Down
4 changes: 2 additions & 2 deletions resources/src/IconActionJump.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const IconActionJump = (props: { side?: boolean }) => {
content.push(
<Popover.Item key="title" title>
Jump to
</Popover.Item>
</Popover.Item>,
)

if (data?.entries) {
Expand All @@ -19,7 +19,7 @@ const IconActionJump = (props: { side?: boolean }) => {
<Popover.Item key={os}>
<Link href={'#' + os}>{os}</Link>
</Popover.Item>
))
)),
)
}

Expand Down
2 changes: 1 addition & 1 deletion resources/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ ReactDOM.render(
<StrictMode>
<App />
</StrictMode>,
document.querySelector('#root')
document.querySelector('#root'),
)
2 changes: 1 addition & 1 deletion resources/src/useEscClose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function useEscClose(visible: boolean, setVisible: (value: boolean) => void) {
? () => {
setVisible(false)
}
: undefined
: undefined,
)
}

Expand Down
2 changes: 1 addition & 1 deletion resources/src/useKeyPress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function useKeyPress(targetKey: string, onPressed?: () => void) {
onPressed()
}
},
[targetKey, onPressed]
[targetKey, onPressed],
)

useEffect(() => {
Expand Down

0 comments on commit a6f7bcc

Please sign in to comment.