diff --git a/config.json b/config.json index fe0cbde..4f0fa96 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,25 @@ { "base": { - "municipality": "purmerend" + "municipality": "purmerend", + "style": { + "primaryColor": "#24578f" + }, + "map": { + "find_address_in_distance": 30, + "center": [ + 52.3731081, + 4.8932945 + ], + "maxBounds": [ + [ + 4.64034, + 52.25168 + ], + [ + 5.10737, + 52.50536 + ] + ] + } } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 566c576..147e2f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "@radix-ui/react-select": "2.1.2", "@radix-ui/react-slot": "1.1.0", "@radix-ui/react-visually-hidden": "1.1.0", + "@tabler/icons-react": "3.21.0", "@types/lodash": "4.17.10", "axios-retry": "4.5.0", "class-variance-authority": "0.7.0", @@ -2625,6 +2626,30 @@ "tslib": "^2.4.0" } }, + "node_modules/@tabler/icons": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/@tabler/icons/-/icons-3.21.0.tgz", + "integrity": "sha512-5+GkkmWCr1wgMor5cOF1/YYflTQdc15y10FUikJ3HW8hDiFjfbuoAHJi17FT1vwsr1sA78rkJMn+fDoOOjnnPA==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/codecalm" + } + }, + "node_modules/@tabler/icons-react": { + "version": "3.21.0", + "resolved": "https://registry.npmjs.org/@tabler/icons-react/-/icons-react-3.21.0.tgz", + "integrity": "sha512-Qq0GnZzzccbv/zuMyXAUUPlogNAqx9KsF8cr/ev3bxs+GMObqNEjXv1eZl9GFzxyQTS435siJNU8A1BaIYhX8g==", + "dependencies": { + "@tabler/icons": "3.21.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/codecalm" + }, + "peerDependencies": { + "react": ">= 16" + } + }, "node_modules/@testing-library/dom": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", diff --git a/package.json b/package.json index d065fe3..0dd1019 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@radix-ui/react-select": "2.1.2", "@radix-ui/react-slot": "1.1.0", "@radix-ui/react-visually-hidden": "1.1.0", + "@tabler/icons-react": "3.21.0", "@types/lodash": "4.17.10", "axios-retry": "4.5.0", "class-variance-authority": "0.7.0", diff --git a/src/app/[locale]/incident/add/components/AdditionalInformationPage.tsx b/src/app/[locale]/incident/add/components/AdditionalInformationPage.tsx new file mode 100644 index 0000000..525f5b8 --- /dev/null +++ b/src/app/[locale]/incident/add/components/AdditionalInformationPage.tsx @@ -0,0 +1,30 @@ +'use client' + +import { useTranslations } from 'next-intl' +import { useFormStore } from '@/store/form_store' +import { Heading, HeadingGroup, PreHeading } from '@/components' +import { IncidentQuestionsLocationForm } from '@/app/[locale]/incident/add/components/IncidentQuestionsLocationForm' + +const currentStep = 2 +const maxStep = 4 + +export const AdditionalInformationPage = () => { + const t = useTranslations('describe-add') + const tGeneral = useTranslations('general.describe_form') + const { loaded } = useFormStore() + + // TODO: implement nice loading state, for if loaded if false. Also create a loading state for Stepper store. + if (loaded) { + return ( +
+ + {t('heading')} + + {tGeneral('pre-heading', { current: currentStep, max: maxStep })} + + + +
+ ) + } +} diff --git a/src/app/[locale]/incident/add/components/AddressSelect.tsx b/src/app/[locale]/incident/add/components/AddressSelect.tsx deleted file mode 100644 index f5b6b69..0000000 --- a/src/app/[locale]/incident/add/components/AddressSelect.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import Select, { DropdownIndicatorProps, components } from 'react-select' -import React from 'react' -import { TbSearch } from 'react-icons/tb' - -const options = [ - { value: 'eikenboomstraat', label: 'eikenboomstraat' }, - { value: 'dennenboom', label: 'dennenboomstraat' }, - { value: 'beukenboomstraat', label: 'beukenboomstraat' }, - { value: 'sparrenboomstraat', label: 'sparrenboomstraat' }, - { value: 'acaciaboomstraat', label: 'acaciaboomstraat' }, -] - -const DropdownIndicator = (props: DropdownIndicatorProps) => { - return ( - - - - ) -} - -const IndicatorSeparator = () => { - return null -} - -const AddressSelect = () => { - return ( -