Skip to content

Commit

Permalink
style: RefreshButton styling with mui
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxjinn committed Aug 14, 2024
1 parent 2dd131b commit 8fb109f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions packages/view/src/components/RefreshButton/RefreshButton.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
.refresh-button {
width: 30px;
height: 30px;
border: 0px solid transparent;
background-color: transparent;
cursor: pointer;
}

.refresh-button-icon {
Expand Down
9 changes: 5 additions & 4 deletions packages/view/src/components/RefreshButton/RefreshButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "reflect-metadata";
import cn from "classnames";
import ReplayCircleFilledRoundedIcon from "@mui/icons-material/ReplayCircleFilledRounded";
import { IconButton } from "@mui/material";

import { throttle } from "utils";
import { useGlobalData } from "hooks";
Expand All @@ -16,16 +17,16 @@ const RefreshButton = () => {
}, 3000);

return (
<button
type="button"
<IconButton
className={cn("refresh-button")}
onClick={refreshHandler}
disabled={loading}
sx={{ color: "white" }}
>
<ReplayCircleFilledRoundedIcon
className={cn("refresh-button-icon", { "refresh-button-icon--loading": loading })}
style={{ color: "white" }}
/>
</button>
</IconButton>
);
};

Expand Down

0 comments on commit 8fb109f

Please sign in to comment.