From 3cb377126d45335dc1a0694ee3c3500810efddb5 Mon Sep 17 00:00:00 2001 From: Karan Shah Date: Tue, 25 Jan 2022 10:50:21 +0000 Subject: [PATCH] Improve the api bar components Signed-off-by: Karan Shah --- .../airbrake/dev/components/ApiBar/ApiBar.tsx | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/plugins/airbrake/dev/components/ApiBar/ApiBar.tsx b/plugins/airbrake/dev/components/ApiBar/ApiBar.tsx index f86cb348ba..d782113dc0 100644 --- a/plugins/airbrake/dev/components/ApiBar/ApiBar.tsx +++ b/plugins/airbrake/dev/components/ApiBar/ApiBar.tsx @@ -14,8 +14,7 @@ * limitations under the License. */ import React, { useState } from 'react'; -import { Select, SelectItem } from '@backstage/core-components'; -import { makeStyles, TextField } from '@material-ui/core'; +import { makeStyles, MenuItem, TextField } from '@material-ui/core'; const useStyles = makeStyles({ root: { @@ -27,7 +26,7 @@ const useStyles = makeStyles({ export const ApiBar = () => { const classes = useStyles(); - const apiOptions: SelectItem[] = [ + const apiOptions = [ { label: 'Fake', value: 'fake' }, { label: 'Real', value: 'real' }, ]; @@ -37,12 +36,18 @@ export const ApiBar = () => { return (
-