Merge pull request #413 from edewit/type-fix

fixed type
This commit is contained in:
mfrances17 2021-03-04 08:56:18 -05:00 committed by GitHub
commit 42194dd779
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}}