Update prettier

This commit is contained in:
Thomas Nordquist
2020-04-15 23:54:30 +02:00
parent fbfbe94d19
commit 237c718a0a
76 changed files with 130 additions and 257 deletions

View File

@@ -31,7 +31,7 @@ function ColorSettings(props: {
)
const menuItems = React.useMemo(() => {
return colors.map(color => (
return colors.map((color) => (
<MenuItem
style={{ minWidth: '8em', minHeight: '36px', backgroundColor: color, textAlign: 'center' }}
key={color}
@@ -65,7 +65,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(memo(ColorSettings))
export default connect(undefined, mapDispatchToProps)(memo(ColorSettings))

View File

@@ -38,7 +38,7 @@ function InterpolationSettings(props: {
}, [curves])
const menuItems = React.useMemo(() => {
return curves.map(curve => (
return curves.map((curve) => (
<MenuItem key={curve} onClick={callbacks[curve]} selected={props.chart.interpolation === curve}>
<Typography variant="inherit">{curve.replace(/_/g, ' ')}</Typography>
</MenuItem>
@@ -60,7 +60,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(InterpolationSettings)
export default connect(undefined, mapDispatchToProps)(InterpolationSettings)

View File

@@ -33,7 +33,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(MoveUp)
export default connect(undefined, mapDispatchToProps)(MoveUp)

View File

@@ -95,10 +95,7 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(RangeSettings)
export default connect(undefined, mapDispatchToProps)(RangeSettings)
function useRangeStateToFireUpdateAction(
rangeFrom: string | number | undefined,

View File

@@ -47,7 +47,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(memo(Size))
export default connect(undefined, mapDispatchToProps)(memo(Size))

View File

@@ -58,7 +58,7 @@ function TimeRangeSettings(props: Props) {
>
<Typography>Chart data within a time interval</Typography>
<div style={{ padding: '0 16px', width: '275px', textAlign: 'center' }}>
{ranges.map(r => {
{ranges.map((r) => {
return (
<Button
style={{ margin: '4px', textTransform: 'none' }}
@@ -96,7 +96,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(TimeRangeSettings)
export default connect(undefined, mapDispatchToProps)(TimeRangeSettings)

View File

@@ -39,7 +39,7 @@ export function colors() {
indigo,
yellow,
]
.map(color => [color[200], color[500], color[700]])
.map((color) => [color[200], color[500], color[700]])
.reduce((a, b) => a.concat(b), [])
.sort((a, b) => colorCompare(a, b))
return colors

View File

@@ -133,7 +133,4 @@ const mapDispatchToProps = (dispatch: any) => {
}
}
export default connect(
undefined,
mapDispatchToProps
)(memo(TopicChart))
export default connect(undefined, mapDispatchToProps)(memo(TopicChart))

View File

@@ -63,7 +63,7 @@ function ChartPanel(props: Props) {
}
}, [chartsInView])
const charts = props.charts.map(chartParameters => (
const charts = props.charts.map((chartParameters) => (
<CSSTransition
key={`${chartParameters.topic}-${chartParameters.dotPath || ''}`}
timeout={{ enter: 500, exit: 500 }}
@@ -126,7 +126,4 @@ const styles = (theme: Theme) => ({
},
})
export default connect(
mapStateToProps,
mapDispatchToProps
)(withStyles(styles)(ChartPanel))
export default connect(mapStateToProps, mapDispatchToProps)(withStyles(styles)(ChartPanel))