Skip to content

Commit cda8584

Browse files
committed
Fix linting issues
1 parent 6682629 commit cda8584

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
import {FC} from 'react'
1+
import { FC } from 'react'
22

3-
import {ClassName, useClassName} from '../hooks/className'
4-
import {useFireEvent, AnyEvent} from '../events'
3+
import { ClassName, useClassName } from '../hooks/className'
4+
import { useFireEvent, AnyEvent } from '../events'
55

66
export interface ImageProps {
7-
type: 'Image'
8-
src: string
9-
alt?: string
10-
width?: number | string
11-
height?: number | string
12-
onClick?: AnyEvent
13-
className?: ClassName
7+
type: 'Image'
8+
src: string
9+
alt?: string
10+
width?: number | string
11+
height?: number | string
12+
onClick?: AnyEvent
13+
className?: ClassName
1414
}
1515

1616
export const ImageComp: FC<ImageProps> = (props) => {
17-
const {src, alt, width, height, onClick} = props
17+
const { src, alt, width, height, onClick } = props
1818

19-
const {fireEvent} = useFireEvent()
19+
const { fireEvent } = useFireEvent()
2020

21-
return (
22-
<img
23-
className={useClassName(props)}
24-
src={src}
25-
alt={alt}
26-
width={width}
27-
height={height}
28-
onClick={() => fireEvent(onClick)}
29-
/>
30-
)
21+
return (
22+
<img
23+
className={useClassName(props)}
24+
src={src}
25+
alt={alt}
26+
width={width}
27+
height={height}
28+
onClick={() => fireEvent(onClick)}
29+
/>
30+
)
3131
}

python/fastui/components/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class ServerLoad(pydantic.BaseModel, extra='forbid'):
170170
sse: bool | None = None
171171
type: typing.Literal['ServerLoad'] = 'ServerLoad'
172172

173+
173174
class Image(pydantic.BaseModel, extra='forbid'):
174175
src: str
175176
alt: str | None = None

0 commit comments

Comments
 (0)