Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 3e09ad8

Browse files
committed
refactor: better typing for logo
1 parent 1b05add commit 3e09ad8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/atoms/Logo.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import React, { FC } from 'react'
22
import { logoFullWhite } from '../../assets/images'
33

4-
interface LogoProps extends React.Props<HTMLImageElement> {
5-
alt?: string
6-
}
7-
8-
const Logo: FC<LogoProps> = ({ alt = 'RIF OS logo', ...rest }) => <img src={logoFullWhite} alt={alt} {...rest} />
4+
const Logo: FC<React.ImgHTMLAttributes<HTMLImageElement>> = (
5+
{ alt = 'RIF OS logo', ...rest },
6+
) => <img src={logoFullWhite} alt={alt} {...rest} />
97

108
export default Logo

0 commit comments

Comments
 (0)