@tactics/toddle-styleguide 1.7.18 → 1.7.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tactics/toddle-styleguide",
3
- "version": "1.7.18",
3
+ "version": "1.7.20",
4
4
  "main": "index.tsx",
5
5
  "types": "index.d.ts",
6
6
  "prepublish": "tsc",
@@ -24,12 +24,13 @@ const CalendarSelect = ({
24
24
  const context = useContext(ThemeCtx);
25
25
  const styles = Stylesheet(context);
26
26
 
27
- const today = ToddleDateTime.now();
28
- const isToday = today.toISO() === startDate.toISO();
29
-
30
27
  const [visibleDate, setVisibleDate] = useState(startDate);
31
28
  const debouncedVisibleDate = useDebounce<ToddleDateTime>(visibleDate, 500);
32
29
 
30
+ const today = ToddleDateTime.now();
31
+ const format = 'yyyy-LL-dd';
32
+ const isToday = today.toFormat(format) == visibleDate.toFormat(format);
33
+
33
34
  useEffect(() => {
34
35
  setVisibleDate(startDate);
35
36
  }, [startDate]);