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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bukazu-portal-react",
3
- "version": "3.2.2",
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.7.5",
55
+ "@apollo/client": "^3.11.8",
56
56
  "date-fns": "^2.29.3",
57
57
  "formik": "^2.2.9",
58
- "graphql": "^15.6.0",
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"
@@ -115,6 +115,8 @@ export const BOOKING_PRICE_QUERY = gql`
115
115
  company_name_label
116
116
  extra_fields_drivers_license_label
117
117
  extra_fields_destination_label
118
+ form_submit_text
119
+ form_submit_button_text
118
120
  booking_fields {
119
121
  id
120
122
  label
@@ -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
- <FormattedMessage id="agree_with" />{' '}
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
- <FormattedMessage id="book" />
217
+ {PortalSite.form_submit_button_text}
216
218
  </button>
217
219
  </div>
218
220
  </Form>