fix: optimization tranbox

This commit is contained in:
Gabe Yuan
2024-04-15 18:04:35 +08:00
parent 8f76ea49e7
commit ce4ac79e5f
6 changed files with 114 additions and 135 deletions

View File

@@ -7,7 +7,7 @@ export default function AudioBtn({ text, lan = "uk" }) {
if (error || !ready) {
return (
<IconButton disabled>
<IconButton disabled size="small">
<VolumeUpIcon />
</IconButton>
);
@@ -15,14 +15,14 @@ export default function AudioBtn({ text, lan = "uk" }) {
if (playing) {
return (
<IconButton color="primary">
<IconButton color="primary" size="small">
<VolumeUpIcon />
</IconButton>
);
}
return (
<IconButton onClick={onPlay}>
<IconButton onClick={onPlay} size="small">
<VolumeUpIcon />
</IconButton>
);