added some typing before updates

This commit is contained in:
2022-07-24 14:16:20 +02:00
parent e736278e27
commit 50de6be31d
9 changed files with 15 additions and 15 deletions

View File

@@ -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?: {} };

View File

@@ -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 (

View File

@@ -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 (