Skip to content

Commit

Permalink
Cleanup makeStyles from TimeSeriesWidgetUI (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
jantolg authored Apr 28, 2023
1 parent 129dff0 commit ebdbae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- FeatureSelectionWidgetUI component migrated from makeStyles to styled-components [#640](https://github.com/CartoDB/carto-react/pull/640)
- LegendWrapper component migrated from makeStyles to styled-components + cleanup [#641](https://github.com/CartoDB/carto-react/pull/641)
- TableWidgetUI component migrated from makeStyles to styled-components + cleanup [#642](https://github.com/CartoDB/carto-react/pull/642)
- TimeSeriesWidgetUI component cleanup makeStyles and unnecessary className [#643](https://github.com/CartoDB/carto-react/pull/643)

## 2.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ TimeSeriesWidgetUI.defaultProps = {

export default TimeSeriesWidgetUI;

const useStyles = makeStyles((theme) => ({
currentStepSize: {
fontSize: 12,
marginLeft: theme.spacing(1)
}
}));

// Content is splitted from the default
// component to be able to use context
function TimeSeriesWidgetUIContent({
Expand All @@ -157,7 +150,6 @@ function TimeSeriesWidgetUIContent({
showControls,
animation
}) {
const classes = useStyles();
const [anchorSpeedEl, setAnchorSpeedEl] = useState(null);
const [speed, setSpeed] = useState(1);
const {
Expand Down Expand Up @@ -316,7 +308,9 @@ function TimeSeriesWidgetUIContent({
{currentDate}
</Typography>
<Typography
className={classes.currentStepSize}
xs
fontSize={12}
ml={1}
color='textSecondary'
variant='caption'
>
Expand Down

0 comments on commit ebdbae3

Please sign in to comment.