Skip to content

Commit

Permalink
Merge pull request #42 from plezanje-net/date-picker
Browse files Browse the repository at this point in the history
Date picker
  • Loading branch information
demshy authored May 26, 2024
2 parents 641a2d1 + 941c5b3 commit 8f26a05
Show file tree
Hide file tree
Showing 7 changed files with 976 additions and 0 deletions.
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"dayjs": "^1.11.6",
"eslint": "^8.42.0",
"eslint-config-next": "^14.0.3",
"focus-trap-react": "^10.2.3",
"graphql": "^16.6.0",
"leaflet": "^1.9.4",
"next": "^14.1.4",
Expand Down
25 changes: 25 additions & 0 deletions src/app/sandbox/date-picker/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import DatePicker, { TDate } from "@/components/ui/date-picker";
import { useState } from "react";

function DatePickerPage() {
const [value, setValue] = useState<TDate>({
// day: 19,
// month: 5,
// year: 2024,
day: "dd",
month: "mm",
year: "llll",
});

return (
<div>
<div className="relative mx-auto mt-8 w-80">
<DatePicker value={value} onChange={setValue} />
</div>
</div>
);
}

export default DatePickerPage;
Loading

0 comments on commit 8f26a05

Please sign in to comment.