![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
mui-date-picker
Advanced tools
Simple MUI Date Picker React Component
https://vchin.github.io/mui-date-picker
Install
npm install --save mui-date-picker @material-ui/core @material-ui/icons react
import React, { PureComponent } from 'react';
import { IconButton, Dialog, DialogContent, FormControl, InputLabel, Input, InputAdornment, withStyles } from '@material-ui/core';
import { CalendarToday } from '@material-ui/icons';
import { format } from 'date-fns';
import { Calendar } from 'mui-date-picker';
const DemoDialog = ({ open, onClose, onDateChange, classes }) => (
<Dialog open={open} onClose={onClose}>
<DialogContent className={classes.content}>
<Calendar date={new Date()} onDateChange={onDateChange} />
</DialogContent>
</Dialog>
);
const StyledDialog = withStyles({
content: {
padding: 0,
'&:first-child': {
padding: 0,
},
},
})(DemoDialog);
class DialogDemo extends PureComponent {
constructor(props) {
super(props);
this.state = {
isDialogOpen: false,
date: '',
};
}
handleButtonClick = () => {
this.setState({
isDialogOpen: true,
});
};
handleDialogClose = () => {
this.setState({
isDialogOpen: false,
});
};
handleDateChange = (date) => {
this.handleDialogClose();
this.setState({
date: format(date, 'MMM D, YYYY'),
});
};
render() {
const { isDialogOpen, date } = this.state;
return (
<div>
<FormControl>
<InputLabel>Date</InputLabel>
<Input
value={date}
disabled
type="text"
readOnly
endAdornment={
<InputAdornment position="end">
<IconButton onClick={this.handleButtonClick}>
<CalendarToday />
</IconButton>
</InputAdornment>
}
/>
</FormControl>
<StyledDialog open={isDialogOpen} onClose={this.handleDialogClose} onDateChange={this.handleDateChange} />
</div>
);
}
}
export default DialogDemo;
FAQs
Simple MUI Date Picker React Component
The npm package mui-date-picker receives a total of 18 weekly downloads. As such, mui-date-picker popularity was classified as not popular.
We found that mui-date-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.