refact: convert components to use React.FC type + type improvements

This commit is contained in:
Phi
2019-09-17 17:06:43 -04:00
committed by Jean-Philippe Sirois
parent d61c218657
commit 1d88367645
23 changed files with 89 additions and 74 deletions
@@ -1,14 +1,14 @@
import React, { PropsWithChildren } from "react"
import React, { FC } from "react"
import * as SC from "./styles"
export interface IResourcesSidebarSectionProps {
readonly title: string
}
export function ResourcesSidebarSection({
export const ResourcesSidebarSection: FC<IResourcesSidebarSectionProps> = ({
title,
children,
}: PropsWithChildren<IResourcesSidebarSectionProps>) {
}) => {
return (
<div>
<SC.SidebarTitle>{title}</SC.SidebarTitle>