diff --git a/plugins/github-pull-requests-board/src/components/Card/CardHeader.tsx b/plugins/github-pull-requests-board/src/components/Card/CardHeader.tsx index b1259ec993..831423a464 100644 --- a/plugins/github-pull-requests-board/src/components/Card/CardHeader.tsx +++ b/plugins/github-pull-requests-board/src/components/Card/CardHeader.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React from 'react'; +import React, { FunctionComponent } from 'react'; import { Typography, Box } from '@material-ui/core'; import { getElapsedTime } from '../../utils/functions'; import { UserHeader } from '../UserHeader'; @@ -27,7 +27,7 @@ type Props = { repositoryName: string; }; -const CardHeader = (props: Props) => { +const CardHeader: FunctionComponent = (props: Props) => { const { title, createdAt, diff --git a/plugins/github-pull-requests-board/src/components/InfoCardHeader/InfoCardHeader.tsx b/plugins/github-pull-requests-board/src/components/InfoCardHeader/InfoCardHeader.tsx index 9ba94dfa75..8c126bcaa4 100644 --- a/plugins/github-pull-requests-board/src/components/InfoCardHeader/InfoCardHeader.tsx +++ b/plugins/github-pull-requests-board/src/components/InfoCardHeader/InfoCardHeader.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React, { PropsWithChildren } from 'react'; +import React, { PropsWithChildren, FunctionComponent } from 'react'; import { Typography, Box, IconButton } from '@material-ui/core'; import RefreshIcon from '@material-ui/icons/Refresh'; @@ -21,7 +21,9 @@ type Props = { onRefresh: () => void; }; -const InfoCardHeader = (props: PropsWithChildren) => { +const InfoCardHeader: FunctionComponent = ( + props: PropsWithChildren, +) => { const { children, onRefresh } = props; return ( diff --git a/plugins/github-pull-requests-board/src/components/PullRequestBoardOptions/PullRequestBoardOptions.tsx b/plugins/github-pull-requests-board/src/components/PullRequestBoardOptions/PullRequestBoardOptions.tsx index 6390b36aae..6938210e68 100644 --- a/plugins/github-pull-requests-board/src/components/PullRequestBoardOptions/PullRequestBoardOptions.tsx +++ b/plugins/github-pull-requests-board/src/components/PullRequestBoardOptions/PullRequestBoardOptions.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React, { ReactNode } from 'react'; +import React, { ReactNode, FunctionComponent } from 'react'; import { ToggleButton, ToggleButtonGroup } from '@material-ui/lab'; import { Tooltip, Box } from '@material-ui/core'; import { PRCardFormating } from '../../utils/types'; @@ -30,7 +30,7 @@ type Props = { options: Option[]; }; -const PullRequestBoardOptions = (props: Props) => { +const PullRequestBoardOptions: FunctionComponent = (props: Props) => { const { value, onClickOption, options } = props; return ( ({ }, })); -const UserHeader = (props: Props) => { +const UserHeader: FunctionComponent = (props: Props) => { const { name, avatar } = props; const classes = useStyles(); diff --git a/plugins/github-pull-requests-board/src/components/UserHeaderList/UserHeaderList.tsx b/plugins/github-pull-requests-board/src/components/UserHeaderList/UserHeaderList.tsx index 8bddeb7433..a2c52a6d5e 100644 --- a/plugins/github-pull-requests-board/src/components/UserHeaderList/UserHeaderList.tsx +++ b/plugins/github-pull-requests-board/src/components/UserHeaderList/UserHeaderList.tsx @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React from 'react'; +import React, { FunctionComponent } from 'react'; import { Typography, Box } from '@material-ui/core'; import { filterSameUser } from '../../utils/functions'; @@ -25,7 +25,7 @@ type Props = { users: Author[]; }; -const UserHeaderList = (props: Props) => { +const UserHeaderList: FunctionComponent = (props: Props) => { const { users, label } = props; return ( diff --git a/plugins/github-pull-requests-board/src/components/Wrapper/Wrapper.tsx b/plugins/github-pull-requests-board/src/components/Wrapper/Wrapper.tsx index 18b47eafbf..6d8f17cb72 100644 --- a/plugins/github-pull-requests-board/src/components/Wrapper/Wrapper.tsx +++ b/plugins/github-pull-requests-board/src/components/Wrapper/Wrapper.tsx @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React, { PropsWithChildren } from 'react'; +import React, { PropsWithChildren, FunctionComponent } from 'react'; import { Grid, Box } from '@material-ui/core'; type Props = { fullscreen: boolean; }; -const Wrapper = (props: PropsWithChildren) => { +const Wrapper: FunctionComponent = (props: PropsWithChildren) => { const { children, fullscreen } = props; return ( diff --git a/plugins/github-pull-requests-board/src/components/icons/DraftPr/DraftPr.tsx b/plugins/github-pull-requests-board/src/components/icons/DraftPr/DraftPr.tsx index 6dc5e306c1..05d21b21b9 100644 --- a/plugins/github-pull-requests-board/src/components/icons/DraftPr/DraftPr.tsx +++ b/plugins/github-pull-requests-board/src/components/icons/DraftPr/DraftPr.tsx @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import React from 'react'; +import React, { FunctionComponent } from 'react'; -const DraftPr = () => ( +const DraftPr: FunctionComponent = () => (