mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-21 05:46:11 +08:00
(ui): Fix button style
This commit is contained in:
@@ -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}
|
||||||
|
Reference in New Issue
Block a user