File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11import './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
Original file line number Diff line number Diff line change 11import { Meta , Story } from '@storybook/react'
2+
23import { Component as Greeting , Props } from './Greeting'
34
45export default {
Original file line number Diff line number Diff line change 11import React from 'react'
22
3+ type ContainerProps = {
4+ target ?: string
5+ }
6+
37export 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-
1717const Container : React . FC < ContainerProps > = ( props ) => {
1818 const target = props . target || 'world'
1919
Original file line number Diff line number Diff line change 11import { act , renderHook } from '@testing-library/react-hooks'
2+
23import useCounter from '../useCounter'
34
45describe ( 'useCounter' , ( ) => {
You can’t perform that action at this time.
0 commit comments