Improve AccessibleButton & related types (#12075)
* Fix wrong type enum usage Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Use improved type definition for forwardRef which enables Generic props Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve AccessibleButton & related Props types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove useless comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e26d3e9b68
commit
af31965866
17 changed files with 109 additions and 79 deletions
|
@ -35,7 +35,6 @@ import FacePile from "../elements/FacePile";
|
|||
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||
import { CallDuration, SessionDuration } from "../voip/CallDuration";
|
||||
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
||||
import { ContinueKind } from "../auth/InteractiveAuthEntryComponents";
|
||||
|
||||
const MAX_FACES = 8;
|
||||
|
||||
|
@ -127,7 +126,7 @@ const ActiveLoadedCallEvent = forwardRef<any, ActiveLoadedCallEventProps>(({ mxE
|
|||
);
|
||||
|
||||
const [buttonText, buttonKind, onButtonClick] = useMemo<
|
||||
[string, ContinueKind, null | ((ev: ButtonEvent) => void)]
|
||||
[string, AccessibleButtonKind, null | ((ev: ButtonEvent) => void)]
|
||||
>(() => {
|
||||
switch (connectionState) {
|
||||
case ConnectionState.Disconnected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue