(ui): Fix button style

This commit is contained in:
Ken Hibino
2021-12-01 18:30:27 -08:00
parent 36a5ce4a5b
commit f304d97e11

View File

@@ -46,6 +46,9 @@ const useStyles = makeStyles((theme) => ({
radioButtonLabel: { radioButtonLabel: {
fontSize: 14, fontSize: 14,
}, },
buttonLabel: {
textTransform: "none",
},
})); }));
function mapStateToProps(state: AppState) { function mapStateToProps(state: AppState) {
@@ -115,7 +118,7 @@ function MetricsView(props: Props) {
} }
}; };
const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => { const handleButtonClick = (event: React.MouseEvent<HTMLButtonElement>) => {
setAnchorEl(event.currentTarget); setAnchorEl(event.currentTarget);
}; };
@@ -145,9 +148,13 @@ function MetricsView(props: Props) {
<div className={classes.controls}> <div className={classes.controls}>
<Button <Button
aria-describedby={id} aria-describedby={id}
variant="contained" variant="outlined"
color="primary" color="primary"
onClick={handleClick} onClick={handleButtonClick}
size="small"
classes={{
label: classes.buttonLabel,
}}
> >
{endTimeOption === "real_time" ? "Realtime" : "Historical"}:{" "} {endTimeOption === "real_time" ? "Realtime" : "Historical"}:{" "}
{durationOption} {durationOption}