diff --git a/src/components/funnels/funnels/register/steps/roomshare.tsx b/src/components/funnels/funnels/register/steps/roomshare.tsx new file mode 100644 index 0000000..c1f9fa4 --- /dev/null +++ b/src/components/funnels/funnels/register/steps/roomshare.tsx @@ -0,0 +1,16 @@ +import { ReadonlyRouteComponentProps } from '~/util/readonly-types' +import { Router } from '@reach/router' +import { withPrefix } from 'gatsby' +import * as ROUTES from '~/navigation/routes' +import RoomShareJoin from '~/components/funnels/funnels/register/steps/roomshare/join' +import RoomShareHome from '~/components/funnels/funnels/register/steps/roomshare/home' +import RoomShareCreate from '~/components/funnels/funnels/register/steps/roomshare/create' + +const RoomShare = (_: ReadonlyRouteComponentProps) => + + + ` + + + +export default RoomShare diff --git a/src/components/funnels/funnels/register/steps/roomshare/create.tsx b/src/components/funnels/funnels/register/steps/roomshare/create.tsx new file mode 100644 index 0000000..b9434b5 --- /dev/null +++ b/src/components/funnels/funnels/register/steps/roomshare/create.tsx @@ -0,0 +1,11 @@ +import type { ReadonlyRouteComponentProps } from '~/util/readonly-types' + +const RoomShareCreate = (_: ReadonlyRouteComponentProps) => { + return ( +
+ {/**/} +
+ ) +} + +export default RoomShareCreate diff --git a/src/components/funnels/funnels/register/steps/roomshare/home.tsx b/src/components/funnels/funnels/register/steps/roomshare/home.tsx new file mode 100644 index 0000000..5a34391 --- /dev/null +++ b/src/components/funnels/funnels/register/steps/roomshare/home.tsx @@ -0,0 +1,11 @@ +import type { ReadonlyRouteComponentProps } from '~/util/readonly-types' + +const RoomShareHome = (_: ReadonlyRouteComponentProps) => { + return ( +
+

RoomShareHome

+
+ ) +} + +export default RoomShareHome diff --git a/src/components/funnels/funnels/register/steps/roomshare/join.tsx b/src/components/funnels/funnels/register/steps/roomshare/join.tsx new file mode 100644 index 0000000..81c719d --- /dev/null +++ b/src/components/funnels/funnels/register/steps/roomshare/join.tsx @@ -0,0 +1,7 @@ +import type { ReadonlyRouteComponentProps } from '~/util/readonly-types' + +const RoomShareJoin = (_: ReadonlyRouteComponentProps) => { + return
RoomShareJoin
+} + +export default RoomShareJoin diff --git a/src/config.ts b/src/config.ts index 21d5004..b141686 100644 --- a/src/config.ts +++ b/src/config.ts @@ -25,6 +25,7 @@ const config = checkConfig({ dayTicketEndDate: DateTime.fromISO('2024-09-21', { zone: 'Europe/Berlin' }), earliestBirthDate: DateTime.fromISO('1901-01-01'), minimumAge: 18, + enableRoomshare: true, // For development allowedCountries: ['AF', 'AX', 'AL', 'DZ', 'AS', 'AD', 'AO', 'AI', 'AQ', 'AG', 'AR', 'AM', 'AW', 'AC', 'AU', 'AT', 'AZ', 'BS', 'BH', 'BD', 'BB', 'BY', 'BE', 'BZ', 'BJ', 'BM', 'BT', 'BO', 'BQ', 'BA', 'BW', 'BV', 'BR', 'IO', 'BN', 'BG', 'BF', 'BI', 'CV', 'KH', 'CM', 'CA', 'KY', 'CF', 'EA', 'TD', 'CL', 'CN', 'CX', 'CP', 'CC', 'CO', 'KM', 'CG', 'CD', 'CK', 'CR', 'HR', 'CU', 'CW', 'CY', 'CZ', 'CI', 'DK', 'DG', 'DJ', 'DM', 'DO', 'EC', 'EG', 'SV', 'GQ', 'ER', 'EE', 'SZ', 'ET', 'FK', 'FO', 'FJ', 'FI', 'FR', 'GF', 'PF', 'TF', 'GA', 'GM', 'GE', 'DE', 'GH', 'GI', 'GR', 'GL', 'GD', 'GP', 'GU', 'GT', 'GG', 'GN', 'GW', 'GY', 'HT', 'HM', 'VA', 'HN', 'HK', 'HU', 'IS', 'IN', 'ID', 'IR', 'IQ', 'IE', 'IM', 'IL', 'IT', 'JM', 'JP', 'JE', 'JO', 'IC', 'KZ', 'KE', 'KI', 'KP', 'KR', 'KW', 'KG', 'LA', 'LV', 'LB', 'LS', 'LR', 'LY', 'LI', 'LT', 'LU', 'MO', 'MG', 'MW', 'MY', 'MV', 'ML', 'MT', 'MH', 'MQ', 'MR', 'MU', 'YT', 'MX', 'FM', 'MD', 'MC', 'MN', 'ME', 'MS', 'MA', 'MZ', 'MM', 'NA', 'NR', 'NP', 'NL', 'NC', 'NZ', 'NI', 'NE', 'NG', 'NU', 'NF', 'MK', 'MP', 'NO', 'OM', 'PK', 'PW', 'PS', 'PA', 'PG', 'PY', 'PE', 'PH', 'PN', 'PL', 'PT', 'PR', 'QA', 'RE', 'RO', 'RU', 'RW', 'BL', 'SH', 'KN', 'LC', 'MF', 'PM', 'VC', 'WS', 'SM', 'ST', 'SA', 'SN', 'RS', 'SC', 'SL', 'SG', 'SX', 'SK', 'SI', 'SB', 'SO', 'ZA', 'GS', 'SS', 'ES', 'LK', 'SD', 'SR', 'SJ', 'SE', 'CH', 'SY', 'TW', 'TJ', 'TZ', 'TH', 'TL', 'TG', 'TK', 'TO', 'TT', 'TA', 'TN', 'TR', 'TM', 'TC', 'TV', 'UG', 'UA', 'AE', 'GB', 'UM', 'US', 'UY', 'UZ', 'VU', 'VE', 'VN', 'VG', 'VI', 'WF', 'EH', 'YE', 'ZM', 'ZW'], ticketLevels: { 'standard': { diff --git a/src/navigation/router.tsx b/src/navigation/router.tsx index d352d8f..ddba477 100644 --- a/src/navigation/router.tsx +++ b/src/navigation/router.tsx @@ -10,23 +10,30 @@ import Room from '~/components/funnels/funnels/hotel-booking/steps/room' import Guests from '~/components/funnels/funnels/hotel-booking/steps/guests' import AdditionalInfo from '~/components/funnels/funnels/hotel-booking/steps/additional-info' import Email from '~/components/funnels/funnels/hotel-booking/steps/email' +import RoomShare from '~/components/funnels/funnels/register/steps/roomshare' import * as ROUTES from './routes' import { withPrefix } from 'gatsby' import { useAppSelector } from '~/hooks/redux' import { isEditMode } from '~/state/selectors/register' +import config from '~/config' export const EFRouter = () => +const RoomShareRoutes = () => + + export const RegisterRouter = () => { const isEdit = useAppSelector(isEditMode()) + const enableRoomShare = config.enableRoomshare return + {enableRoomShare && } diff --git a/src/navigation/routes.ts b/src/navigation/routes.ts index a64cd32..1afa948 100644 --- a/src/navigation/routes.ts +++ b/src/navigation/routes.ts @@ -9,6 +9,10 @@ export const REGISTER_TICKET_LEVEL = 'level' export const REGISTER_PERSONAL = 'personal-info' export const REGISTER_CONTACT = 'contact-info' export const REGISTER_OPTIONAL = 'optional-info' +export const REGISTER_ROOM_SHARE = 'room-share' +export const REGISTER_ROOM_SHARE_HOME = 'home' +export const REGISTER_ROOM_SHARE_JOIN = 'join' +export const REGISTER_ROOM_SHARE_CREATE = 'create' export const REGISTER_SUMMARY = 'summary' export const REGISTER_THANK_YOU = 'thank-you' diff --git a/src/util/config-types.ts b/src/util/config-types.ts index 5f541a6..ccdedb1 100644 --- a/src/util/config-types.ts +++ b/src/util/config-types.ts @@ -45,6 +45,7 @@ type Config