mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-24 01:58:25 +01:00
Remove unnecessary useCallback dependencies
This commit is contained in:
parent
6b2486f80d
commit
274d99b54d
@ -50,9 +50,9 @@ const GroupVisualizer = ({groups, colors, name, horizontal}) => {
|
||||
top: "0.5rem"
|
||||
};
|
||||
|
||||
const changeViewToPie = useCallback(() => setVisualization(options.PIE), [setVisualization, options])
|
||||
const changeViewToTable = useCallback(() => setVisualization(options.TABLE), [setVisualization, options])
|
||||
const changeViewToBar = useCallback(() => setVisualization(horizontal ? options.BAR : options.COLUMN), [setVisualization, horizontal, options])
|
||||
const changeViewToPie = useCallback(() => setVisualization(options.PIE), [setVisualization])
|
||||
const changeViewToTable = useCallback(() => setVisualization(options.TABLE), [setVisualization])
|
||||
const changeViewToBar = useCallback(() => setVisualization(horizontal ? options.BAR : options.COLUMN), [setVisualization, horizontal])
|
||||
|
||||
const fallbackFunction = useCallback((error) => <ErrorViewText error={error}/>, []);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user