diff --git a/src/components/DescriptionPortPillComponent.tsx b/src/components/DescriptionPortPillComponent.tsx index 5dd5f9d2..81f59010 100644 --- a/src/components/DescriptionPortPillComponent.tsx +++ b/src/components/DescriptionPortPillComponent.tsx @@ -1,9 +1,10 @@ +import { ConfigProvider, Spin } from "antd"; import * as React from "react"; -import { parseYoutubeID } from "../utils/parseVideoID"; import { PortVideo } from "../render/DesciptionPortPill"; +import { showMessage } from "../render/MessageNotice"; import { VideoID } from "../types"; import { AnimationUtils } from "../utils/animationUtils"; -import { ConfigProvider, Spin } from "antd"; +import { parseYoutubeID } from "../utils/parseVideoID"; export interface DescriptionPortPillProps { bvID: VideoID; @@ -20,38 +21,26 @@ export interface DescriptionPortPillState { loading: boolean; ytbVideoID: VideoID; previewYtbID: VideoID; - showErrorMessage: boolean; } export class DescriptionPortPillComponent extends React.Component { inputRef: React.RefObject; - errorMessage: string; constructor(props: DescriptionPortPillProps) { super(props); this.inputRef = React.createRef(); - this.errorMessage = ""; this.state = { show: false, ytbVideoID: props.ytbID, loading: false, showPreviewYtbVideo: false, previewYtbID: props.ytbID, - showErrorMessage: false, }; } render(): React.ReactElement { return ( - -