Remove usage of the PropTypes dependency (#2723)

* Remove usage of the PropTypes dependency

* Prettified Code!

---------

Co-authored-by: dhanusaputra <dhanusaputra@users.noreply.github.com>
This commit is contained in:
Dhanu Saputra
2023-02-23 00:21:00 +07:00
committed by GitHub
parent 0c08f865bc
commit 0a653aaba7
5 changed files with 25 additions and 38 deletions

View File

@ -1,5 +1,4 @@
import React, { FC, ReactNode, useContext, useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
import Head from 'next/head';
import { differenceInSeconds } from 'date-fns';
@ -338,7 +337,3 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
</Layout>
);
};
MainLayout.propTypes = {
children: PropTypes.element.isRequired,
};