ordering-ui-react-native 0.23.43-test → 0.24.43-test

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": "ordering-ui-react-native",
3
- "version": "0.23.43-test",
3
+ "version": "0.24.43-test",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -83,7 +83,7 @@ export const UserFormDetailsUI = (props: any) => {
83
83
  const [isValid, setIsValid] = useState(false)
84
84
  const [isChanged, setIsChanged] = useState(false)
85
85
  const [isModalOpen, setIsModalOpen] = useState(false)
86
- const [birthdate, setBirthdate] = useState(null)
86
+ const [birthdate, setBirthdate] = useState(user?.birthdate ? new Date(user?.birthdate) : new Date())
87
87
  const [phoneInputData, setPhoneInputData] = useState({
88
88
  error: '',
89
89
  phone: {
@@ -384,7 +384,8 @@ export const UserFormDetailsUI = (props: any) => {
384
384
  </OText>
385
385
  <DateContainer>
386
386
  <DatePicker
387
- date={birthdate ?? user?.birthdate}
387
+ mode='date'
388
+ date={birthdate}
388
389
  onDateChange={_handleChangeDate}
389
390
  />
390
391
  </DateContainer>