fix react errors about using inherit

This commit is contained in:
Ajay
2022-09-03 01:09:16 -04:00
parent f8c61b7848
commit bf191dab92

View File

@@ -42,7 +42,7 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
onClick={(e) => this.vote(e, 1)}> onClick={(e) => this.vote(e, 1)}>
<ThumbsUpSvg className="playerButtonImage" <ThumbsUpSvg className="playerButtonImage"
fill={Config.config.colorPalette.white} fill={Config.config.colorPalette.white}
width={"inherit"} height={"inherit"} /> width={null} height={null} />
</button> </button>
{/* Downvote Button */} {/* Downvote Button */}
@@ -92,8 +92,8 @@ class ChapterVoteComponent extends React.Component<ChapterVoteProps, ChapterVote
<ThumbsDownSvg <ThumbsDownSvg
className="playerButtonImage" className="playerButtonImage"
fill={downvoteButtonColor(this.state.segment ? [this.state.segment] : null, SkipNoticeAction.Downvote, SkipNoticeAction.Downvote)} fill={downvoteButtonColor(this.state.segment ? [this.state.segment] : null, SkipNoticeAction.Downvote, SkipNoticeAction.Downvote)}
width={"inherit"} width={null}
height={"inherit"} /> height={null} />
</button> </button>
</> </>
); );