How to use the @blueprintjs/datetime/lib/esm/common/timeUnit.getDefaultMaxTime function in @blueprintjs/datetime

To help you get started, we’ve selected a few @blueprintjs/datetime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github palantir / blueprint / packages / docs-app / src / examples / datetime-examples / timePickerExample.tsx View on Github external
private changeMaxHour = (hour: MaximumHours) => {
        let maxTime = new Date(1995, 6, 30, hour);

        if (hour === MaximumHours.NONE) {
            maxTime = getDefaultMaxTime();
        }

        this.setState({ maxTime });
    };
}