mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-01 10:31:21 +02:00
Added optional refireParams
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
eee6a509c7
commit
4cf03e4c10
@ -33,6 +33,7 @@ interface IProps {
|
||||
previousPhase?: RightPanelPhases;
|
||||
closeLabel?: string;
|
||||
onClose?(): void;
|
||||
refireParams?;
|
||||
}
|
||||
|
||||
interface IGroupProps {
|
||||
@ -56,6 +57,7 @@ const BaseCard: React.FC<IProps> = ({
|
||||
withoutScrollContainer,
|
||||
previousPhase,
|
||||
children,
|
||||
refireParams,
|
||||
}) => {
|
||||
let backButton;
|
||||
if (previousPhase) {
|
||||
@ -63,6 +65,7 @@ const BaseCard: React.FC<IProps> = ({
|
||||
defaultDispatcher.dispatch<SetRightPanelPhasePayload>({
|
||||
action: Action.SetRightPanelPhase,
|
||||
phase: previousPhase,
|
||||
refireParams: refireParams,
|
||||
});
|
||||
};
|
||||
backButton = <AccessibleButton className="mx_BaseCard_back" onClick={onBackClick} title={_t("Back")} />;
|
||||
|
Loading…
x
Reference in New Issue
Block a user