Skip to content

Commit b3d94bb

Browse files
style: update code style
1 parent aa25a8d commit b3d94bb

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

pages/_app.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import './style.css'
22

3-
function MyApp({ Component, pageProps }) {
3+
import { AppProps } from 'next/app'
4+
5+
function MyApp({ Component, pageProps }: AppProps) {
46
return <Component {...pageProps} />
57
}
68

src/components/Greeting/Greeting.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Meta, Story } from '@storybook/react'
2+
23
import { Component as Greeting, Props } from './Greeting'
34

45
export default {

src/components/Greeting/Greeting.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import React from 'react'
22

3+
type ContainerProps = {
4+
target?: string
5+
}
6+
37
export type Props = {
48
target: string
59
}
@@ -10,10 +14,6 @@ export const Component: React.FC<Props> = (props) => (
1014
</h1>
1115
)
1216

13-
type ContainerProps = {
14-
target?: string
15-
}
16-
1717
const Container: React.FC<ContainerProps> = (props) => {
1818
const target = props.target || 'world'
1919

src/hooks/__tests__/useCounter.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { act, renderHook } from '@testing-library/react-hooks'
2+
23
import useCounter from '../useCounter'
34

45
describe('useCounter', () => {

0 commit comments

Comments
 (0)