@bytebrand/fe-ui-core 4.1.215 → 4.1.217

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": "@bytebrand/fe-ui-core",
3
- "version": "4.1.215",
3
+ "version": "4.1.217",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -6,7 +6,6 @@ interface ITimePickerProps {
6
6
  onHandleTimestampChange: (value: number) => void;
7
7
  onDayChange: (value: number) => void;
8
8
  onTimeChange: (value: number) => void;
9
- hasGoogleOptimize: boolean;
10
9
  className: string;
11
10
  lang: string;
12
11
  time: number;
@@ -16,7 +15,6 @@ interface ITimePickerProps {
16
15
  }
17
16
 
18
17
  const TimePicker = ({
19
- hasGoogleOptimize,
20
18
  onHandleTimestampChange,
21
19
  onDayChange,
22
20
  onTimeChange,
@@ -27,7 +25,6 @@ const TimePicker = ({
27
25
  t,
28
26
  size = 'custom'
29
27
  }: ITimePickerProps) => {
30
- if (!hasGoogleOptimize) return <></>;
31
28
  const date: any = new Date();
32
29
  const [currentDay, setCurrentDay] = useState(date.getDay());
33
30
  const onHandleDayChange = (value: number) => {
@@ -98,7 +95,7 @@ const TimePicker = ({
98
95
  }
99
96
  onHandleTimestampChange(+new Date(`${new Date(nextWeekDaysFull[day]).toDateString()} ${getTimeRanges()[time].time}`) / 1000);
100
97
  },
101
- [day, time, currentDay]
98
+ [day, time]
102
99
  );
103
100
 
104
101
  const getHours = (time: string) => {