Skip to content

Conversation

EmirBoyaci
Copy link

Closes: #1869

Description

See #1869

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (develop)
  • the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Fixes

fixes #[issue number], fixes #[issue number]

@EmirBoyaci EmirBoyaci requested a review from braaar January 30, 2023 09:05
@braaar
Copy link
Member

braaar commented Jan 31, 2023

Let's see what the workflows say, @NoNameProvided ?

@EmirBoyaci
Copy link
Author

Let's see what the workflows say, @NoNameProvided ?

I think you need to approve again because I just merged develop to fix-1869 (it was outdated)

@EmirBoyaci EmirBoyaci requested a review from braaar January 31, 2023 11:43
@EmirBoyaci
Copy link
Author

I did not get the reason why it says "First-time contributors need a maintainer to approve running workflows. Learn more.". You have already approved but workflow did not started..

@braaar
Copy link
Member

braaar commented Jan 31, 2023

I did not get the reason why it says "First-time contributors need a maintainer to approve running workflows. Learn more.". You have already approved but workflow did not started..

I'm not a maintainer. I'm on the triage team and can close issues and pull requests, but not merge code or approve workflow runs.

@EmirBoyaci
Copy link
Author

I did not get the reason why it says "First-time contributors need a maintainer to approve running workflows. Learn more.". You have already approved but workflow did not started..

I'm not a maintainer. I'm on the triage team and can close issues and pull requests, but not merge code or approve workflow runs.

Ah okay I see, so we'll wait until one maintainer approves 👍🏻

@CodyTseng
Copy link
Contributor

export function minDate(date: unknown, minDate: Date | (() => Date)): boolean {
return date instanceof Date && date.getTime() >= (minDate instanceof Date ? minDate : minDate()).getTime();
}

export function maxDate(date: unknown, maxDate: Date | (() => Date)): boolean {
return date instanceof Date && date.getTime() <= (maxDate instanceof Date ? maxDate : maxDate()).getTime();
}

It may be good to use isDate here to see whether passed prop is Date or Function like EmirBoyaci said above 😊

@EmirBoyaci
Copy link
Author

Hi @braaar since it has ~2 months without activity, can I ask you to ping maintainer? I do not know who is responsible but since then only dependabot is bumping package versions..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

fix: MinDate & MaxDate constraint message unclear
3 participants