3c4ccdd2fe
## Why - No memo required (no transformation). - `makeSelect*` is an incorrect pattern. ## Changes - Replaced makeSelectClientSetting with selectClientSetting. - Remove unused selectShowRepostedContent.
11 lines
442 B
JavaScript
11 lines
442 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectDateForUri } from 'redux/selectors/claims';
|
|
import * as SETTINGS from 'constants/settings';
|
|
import { selectClientSetting } from 'redux/selectors/settings';
|
|
import DateTime from './view';
|
|
|
|
const select = (state, props) => ({
|
|
date: props.date || selectDateForUri(state, props.uri),
|
|
clock24h: selectClientSetting(state, SETTINGS.CLOCK_24H),
|
|
});
|
|
export default connect(select)(DateTime);
|