Added optional refireParams

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-01-30 08:51:26 +01:00
parent eee6a509c7
commit 4cf03e4c10
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ interface IProps {
previousPhase?: RightPanelPhases; previousPhase?: RightPanelPhases;
closeLabel?: string; closeLabel?: string;
onClose?(): void; onClose?(): void;
refireParams?;
} }
interface IGroupProps { interface IGroupProps {
@ -56,6 +57,7 @@ const BaseCard: React.FC<IProps> = ({
withoutScrollContainer, withoutScrollContainer,
previousPhase, previousPhase,
children, children,
refireParams,
}) => { }) => {
let backButton; let backButton;
if (previousPhase) { if (previousPhase) {
@ -63,6 +65,7 @@ const BaseCard: React.FC<IProps> = ({
defaultDispatcher.dispatch<SetRightPanelPhasePayload>({ defaultDispatcher.dispatch<SetRightPanelPhasePayload>({
action: Action.SetRightPanelPhase, action: Action.SetRightPanelPhase,
phase: previousPhase, phase: previousPhase,
refireParams: refireParams,
}); });
}; };
backButton = <AccessibleButton className="mx_BaseCard_back" onClick={onBackClick} title={_t("Back")} />; backButton = <AccessibleButton className="mx_BaseCard_back" onClick={onBackClick} title={_t("Back")} />;