import React from 'react';
import PropTypes from 'prop-types';
import { Select } from 'react-components';
import { c } from 'ttag';

import { SETTINGS_WEEK_START } from '../../constants';

const { MONDAY, SATURDAY, SUNDAY } = SETTINGS_WEEK_START;

const WeekStartSelector = ({ day, onChangeDay, ...rest }) => {
    return (
        <Select
            options={[
                { text: c('Week day').t`Saturday`, value: SATURDAY },
                { text: c('Week day').t`Sunday`, value: SUNDAY },
                { text: c('Week day').t`Monday`, value: MONDAY }
            ]}
            value={day}
            onChange={({ target }) => onChangeDay(+target.value)}
            {...rest}
        />
    );
};

WeekStartSelector.propTypes = {
    day: PropTypes.number,
    onChangeDay: PropTypes.func
};

export default WeekStartSelector;

import React from 'react';
import PropTypes from 'prop-types';
import { Select } from 'react-components';
import { c } from 'ttag';

import { SETTINGS_WEEK_START } from '../../constants';

const { MONDAY, SUNDAY } = SETTINGS_WEEK_START;

const WeekStartSelector = ({ day, onChangeDay, ...rest }) => {
    return (
        <Select
            options={[
                { text: c('Week day').t`Sunday`, value: SUNDAY },
                { text: c('Week day').t`Monday`, value: MONDAY }
            ]}
            value={day}
            onChange={({ target }) => onChangeDay(+target.value)}
            {...rest}
        />
    );
};

WeekStartSelector.propTypes = {
    day: PropTypes.number,
    onChangeDay: PropTypes.func
};

export default WeekStartSelector;

Fix - remove Saturday from Week Start dropdown
Fix - remove Saturday from Week Start dropdown
