1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove PropTypes

This commit is contained in:
MrTimscampi 2021-06-15 12:05:33 +02:00
parent 4d23e79f65
commit d770581c52
9 changed files with 9 additions and 54 deletions

View file

@ -1,4 +1,3 @@
import PropTypes from 'prop-types';
import React, { FunctionComponent, useEffect, useRef, useState } from 'react';
import AlphaPicker from './alphaPicker';
@ -9,7 +8,7 @@ type AlphaPickerProps = {
// React compatibility wrapper component for alphaPicker.js
// eslint-disable-next-line @typescript-eslint/no-empty-function
const AlphaPickerComponent: FunctionComponent<AlphaPickerProps> = ({ onAlphaPicked = () => {} }) => {
const AlphaPickerComponent: FunctionComponent<AlphaPickerProps> = ({ onAlphaPicked = () => {} }: AlphaPickerProps) => {
const [ alphaPicker, setAlphaPicker ] = useState(null);
const element = useRef(null);
@ -35,8 +34,4 @@ const AlphaPickerComponent: FunctionComponent<AlphaPickerProps> = ({ onAlphaPick
);
};
AlphaPickerComponent.propTypes = {
onAlphaPicked: PropTypes.func
};
export default AlphaPickerComponent;