mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 16:06:12 +02:00
refact: convert components to use React.FC type + type improvements
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
d61c218657
commit
1d88367645
@@ -1,12 +1,12 @@
|
||||
import React from "react"
|
||||
import React, { FC } from "react"
|
||||
|
||||
import * as SC from "./styles"
|
||||
|
||||
interface IStackedAvatarsProps {
|
||||
authors: any
|
||||
authors: any[]
|
||||
}
|
||||
|
||||
export function StackedAvatars({ authors }: IStackedAvatarsProps) {
|
||||
export const StackedAvatars: FC<IStackedAvatarsProps> = ({ authors }) => {
|
||||
return (
|
||||
<SC.StackedAvatarsWrapper count={authors.length}>
|
||||
{authors.map((author, index) => (
|
||||
|
||||
Reference in New Issue
Block a user