
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
materialui-daterange-picker
Advanced tools
A react date range picker using material-ui components.
Check out the project running at https://pedro-lb.github.io/react-daterange-picker/
npm install materialui-daterange-picker --save
# or with yarn
yarn add materialui-daterange-picker
import React from "react";
import { DateRangePicker, DateRange } from "materialui-daterange-picker";
type Props = {}
const App: React.FunctionComponent<Props> = props => {
const [open, setOpen] = React.useState(false);
const [dateRange, setDateRange] = React.useState<DateRange>({});
return (
<DateRangePicker
open={open}
onChange={range => setDateRange(range)}
/>
);
}
export default App;
import React from "react";
import { DateRangePicker, DateRange } from "materialui-daterange-picker";
type Props = {}
type State = {
open: boolean,
dateRange: DateRange
}
class App extends React.Component<Props, State> {
state = {
open: true,
dateRange: {}
};
render() {
return (
<DateRangePicker
open={this.state.open}
onChange={range => this.setState({ dateRange: range })}
/>
);
}
}
export default App;
interface DateRange {
startDate?: Date,
endDate?: Date
}
interface DefinedRange {
label: string,
startDate: Date,
endDate: Date
}
Name | Type | Required | Default value | Description |
---|---|---|---|---|
initialDateRange | DateRange | {} | initially selected date range | |
minDate | `Date | string` | 10 years ago | |
maxDate | `Date | string` | 10 years from now | |
onChange | (DateRange) => void | required | - | handler function for providing selected date range |
definedRanges | DefinedRange[] | - | custom defined ranges to show in the list |
FAQs
A react date range picker implementation using @material-ui.
The npm package materialui-daterange-picker receives a total of 2,377 weekly downloads. As such, materialui-daterange-picker popularity was classified as popular.
We found that materialui-daterange-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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.