added some typing before updates
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import { FunctionComponent } from "react";
|
||||
import React, { FunctionComponent } from "react";
|
||||
|
||||
type Props = { title: string; value: string; link: string; rest?: {} };
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import React, { ReactNode } from "react";
|
||||
import { FunctionComponent } from "react";
|
||||
|
||||
type Props = {};
|
||||
type Props = { children: ReactNode };
|
||||
|
||||
export const SectionTitle: FunctionComponent<Props> = ({ children }) => {
|
||||
return (
|
||||
|
@@ -1,7 +1,8 @@
|
||||
import React, { FunctionComponent } from "react";
|
||||
import { ReactNode } from "react";
|
||||
import { SectionTitle } from "./section-title";
|
||||
|
||||
type Props = { title: string };
|
||||
type Props = { title: string; children: ReactNode };
|
||||
|
||||
export const Section: FunctionComponent<Props> = ({ title, children }) => {
|
||||
return (
|
||||
|
Reference in New Issue
Block a user