From 397103b63631b1cc95211b5fe783906db9d55949 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Thu, 20 Feb 2025 15:27:14 +1100 Subject: [PATCH] fix: update example in README to use SingleDatePicker instead of WeekPicker --- README.md | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index c9a099d..5130c7e 100644 --- a/README.md +++ b/README.md @@ -30,28 +30,27 @@ Here is an example of how to use Datenel in your React application: ```tsx import React from 'react' -import { WeekPicker } from 'datenel-react' -import './app.scss' +import { SingleDatePicker } from 'datenel-react' export default () => { - function onSelect(value) { - alert(`You selected ${value.year}-${value-month}-${value.day}`) - } + function onSelect(value) { + alert(`You selected ${value.year}-${value-month}-${value.day}`) + } - return ( -
-
- -
-
- ) + return ( +
+
+ +
+
+ ) } ```