bukazu-portal-react 3.2.2 → 3.3.0
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/CHANGELOG.MD +3 -0
- package/build/portal.es.js +14711 -13048
- package/build/portal.umd.js +83 -96
- package/package.json +3 -3
- package/src/_lib/queries.ts +2 -0
- package/src/components/CalendarPage/FormCreator.tsx +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bukazu-portal-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "A package for loading the calendar and search module from bukazu loading into a react app.",
|
|
5
5
|
"repository": "https://github.com/BUKAZU/React-portal",
|
|
6
6
|
"scripts": {
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"whatwg-fetch": "2.0.3"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@apollo/client": "^3.
|
|
55
|
+
"@apollo/client": "^3.11.8",
|
|
56
56
|
"date-fns": "^2.29.3",
|
|
57
57
|
"formik": "^2.2.9",
|
|
58
|
-
"graphql": "^
|
|
58
|
+
"graphql": "^16.9.0",
|
|
59
59
|
"react-date-picker": "^8.1.1",
|
|
60
60
|
"react-intl": "^6.2.5",
|
|
61
61
|
"react-paginate": "^8.1.4"
|
package/src/_lib/queries.ts
CHANGED
|
@@ -52,6 +52,8 @@ function FormCreator({ house, PortalSite }: Props): JSX.Element {
|
|
|
52
52
|
|
|
53
53
|
const optBookingFieldsInitialized = initializeBookingFields(bookingFields);
|
|
54
54
|
|
|
55
|
+
console.log({ PortalSite });
|
|
56
|
+
|
|
55
57
|
return (
|
|
56
58
|
<Formik
|
|
57
59
|
validate={(values) => validateForm(values, house, bookingFields)}
|
|
@@ -175,7 +177,7 @@ function FormCreator({ house, PortalSite }: Props): JSX.Element {
|
|
|
175
177
|
<Summary house={house} values={values} />
|
|
176
178
|
{status && status.msg && <div>{status.msg}</div>}
|
|
177
179
|
<div className="terms">
|
|
178
|
-
|
|
180
|
+
{PortalSite.form_submit_text}{' '}
|
|
179
181
|
<FormattedMessage id="terms">
|
|
180
182
|
{(fm) => (
|
|
181
183
|
<Modal buttonText={fm}>
|
|
@@ -212,7 +214,7 @@ function FormCreator({ house, PortalSite }: Props): JSX.Element {
|
|
|
212
214
|
type="submit"
|
|
213
215
|
disabled={isSubmitting}
|
|
214
216
|
>
|
|
215
|
-
|
|
217
|
+
{PortalSite.form_submit_button_text}
|
|
216
218
|
</button>
|
|
217
219
|
</div>
|
|
218
220
|
</Form>
|