Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release version to master #887

Merged
merged 12 commits into from
Dec 4, 2024
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bfx-report-ui",
"version": "2.47.0",
"version": "2.47.1",
"description": "Report page to overview the user actions in Bitfinex and download related csv files",
"repository": {
"type": "git",
Expand Down
18 changes: 0 additions & 18 deletions src/ui/TimeRangePreservePref/TimeRangePreservePref.container.js

This file was deleted.

26 changes: 13 additions & 13 deletions src/ui/TimeRangePreservePref/TimeRangePreservePref.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import React from 'react'
import React, { useCallback } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { Checkbox } from '@blueprintjs/core'

import { tracker } from 'utils/trackers'
import { toggleTimeRangePreserve } from 'state/timeRange/actions'
import { getIsTimeRangePreserved } from 'state/timeRange/selectors'

import { propTypes, defaultProps } from './TimeRangePreservePref.props'
import { tracker } from 'utils/trackers'

const TimeRangePreservePref = (props) => {
const { isTimeRangePreserved, toggleTimeRangePreserve } = props
const TimeRangePreservePref = () => {
const dispatch = useDispatch()
const isTimeRangePreserved = useSelector(getIsTimeRangePreserved)

const onChange = () => {
const onChange = useCallback(() => {
dispatch(toggleTimeRangePreserve())
tracker.trackEvent('Preserve Timeframe')
toggleTimeRangePreserve()
}
}, [dispatch, tracker])

return (
<Checkbox
checked={isTimeRangePreserved}
onChange={() => onChange()}
large
onChange={onChange}
checked={isTimeRangePreserved}
/>
)
}

TimeRangePreservePref.propTypes = propTypes
TimeRangePreservePref.defaultProps = defaultProps

export default TimeRangePreservePref
8 changes: 0 additions & 8 deletions src/ui/TimeRangePreservePref/TimeRangePreservePref.props.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/ui/TimeRangePreservePref/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import TimeFramePreservePref from './TimeRangePreservePref.container'

export default TimeFramePreservePref
export { default } from './TimeRangePreservePref'