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:
@@ -1,7 +1,6 @@
|
||||
/* eslint-disable react/no-unescaped-entities */
|
||||
import { Typography, Modal, Button, Row, Col, Alert } from 'antd';
|
||||
import React, { ReactElement, useContext, useEffect, useState } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { ReactElement, useContext, useEffect, useState, FC } from 'react';
|
||||
import {
|
||||
TEXTFIELD_TYPE_TEXT,
|
||||
TEXTFIELD_TYPE_TEXTAREA,
|
||||
@@ -29,7 +28,12 @@ import { createInputStatus, STATUS_ERROR, STATUS_SUCCESS } from '../../utils/inp
|
||||
|
||||
import { AdminLayout } from '../../components/layouts/AdminLayout';
|
||||
|
||||
const FederationInfoModal = ({ cancelPressed, okPressed }) => (
|
||||
export type FederationInfoModalProps = {
|
||||
cancelPressed: () => void;
|
||||
okPressed: () => void;
|
||||
};
|
||||
|
||||
const FederationInfoModal: FC<FederationInfoModalProps> = ({ cancelPressed, okPressed }) => (
|
||||
<Modal
|
||||
width="70%"
|
||||
title="Enable Social Features"
|
||||
@@ -87,11 +91,6 @@ const FederationInfoModal = ({ cancelPressed, okPressed }) => (
|
||||
</Modal>
|
||||
);
|
||||
|
||||
FederationInfoModal.propTypes = {
|
||||
cancelPressed: PropTypes.func.isRequired,
|
||||
okPressed: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
const ConfigFederation = () => {
|
||||
const { Title } = Typography;
|
||||
const [formDataValues, setFormDataValues] = useState(null);
|
||||
|
||||
Reference in New Issue
Block a user