mirror of
https://github.com/mue/mue.git
synced 2026-07-20 07:24:08 +02:00
refactor: Reduce bundle size, replace date picker and merge function, add widget order feature etc
Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
@@ -4,7 +4,8 @@ import Checkbox from '../Checkbox';
|
||||
import Switch from '../Switch';
|
||||
import Text from '../Text';
|
||||
|
||||
import DatePicker from 'react-date-picker';
|
||||
import DayPickerInput from 'react-day-picker/DayPickerInput';
|
||||
import 'react-day-picker/lib/style.css';
|
||||
|
||||
export default class GreetingSettings extends React.PureComponent {
|
||||
constructor(...args) {
|
||||
@@ -39,7 +40,7 @@ export default class GreetingSettings extends React.PureComponent {
|
||||
<Checkbox name='birthdayage' text='Birthday Age'/>
|
||||
<ul>
|
||||
<p>{greeting.birthday_date}</p>
|
||||
<DatePicker onChange={(data) => this.changeDate(data)} value={this.state.birthday}/>
|
||||
<DayPickerInput onDayChange={(data) => this.changeDate(data)} value={this.state.birthday} />
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user