Extend HeaderButton and HeaderButtons to be more generic

This commit is contained in:
Michael Telatynski 2021-05-25 13:53:46 +01:00
parent 96928e5d31
commit 02d11b8926
2 changed files with 13 additions and 17 deletions

View file

@ -43,11 +43,11 @@ interface IState {
interface IProps {}
@replaceableComponent("views.right_panel.HeaderButtons")
export default abstract class HeaderButtons extends React.Component<IProps, IState> {
export default abstract class HeaderButtons<P> extends React.Component<IProps & P, IState> {
private storeToken: EventSubscription;
private dispatcherRef: string;
constructor(props: IProps, kind: HeaderKind) {
constructor(props: IProps & P, kind: HeaderKind) {
super(props);
const rps = RightPanelStore.getSharedInstance();