fixed type
This commit is contained in:
parent
4ee7bc9033
commit
02ec114adf
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { useState, useContext, useEffect } from "react";
|
||||
import React, { useState, useContext, useEffect, ReactElement } from "react";
|
||||
import { useHistory } from "react-router-dom";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
|
@ -104,7 +104,7 @@ export const RealmSelector = ({ realmList }: RealmSelectorProps) => {
|
|||
screenReaderLabel={toUpperCase(realm)}
|
||||
onToggle={() => setOpen(!open)}
|
||||
onSelect={(_, r) => {
|
||||
const value = ((r as unknown) as any).props.value;
|
||||
const value = (r as ReactElement).props.value;
|
||||
setRealm(value || "master");
|
||||
setOpen(!open);
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue