Skip to content

Commit

Permalink
WIP: setting up involved party screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbjarnio committed Sep 27, 2024
1 parent 366af44 commit 4ef591a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,25 @@ export const Requirements: Form = buildForm({
title: '',
component: 'RequirementsScreen',
}),
],
}),
],
}),
buildSection({
id: Routes.INVOLVED_PARTY,
title: 'Test',
children: [
buildMultiField({
id: Routes.INVOLVED_PARTY,
title: '',
children: [
buildCustomField({
id: 'involvedParty',
title: '',
component: 'InvolvedPartyScreen',
}),
buildSubmitField({
id: 'toDraft',
id: 'toComments',
title: '',
refetchApplicationAfterSubmit: true,
actions: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const MINIMUM_WEEKDAYS = 10

export enum Routes {
REQUIREMENTS = 'requirements',
INVOLVED_PARTY = 'involvedParty',
COMMENTS = 'comments',
ADVERT = 'advert',
SIGNATURE = 'signature',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { useLocale } from '@island.is/localization'
import { FormScreen } from '../components/form/FormScreen'
import { original } from '../lib/messages'
import { OJOIFieldBaseProps } from '../lib/types'

export const InvolvedPartyScreen = (props: OJOIFieldBaseProps) => {
const { formatMessage: f } = useLocale()
return (
<FormScreen
// title={f(original.general.title)}
// intro={f(original.general.intro)}
title="title"
intro="intro"
>
hallo
</FormScreen>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * from './PublishingScreen'
export * from './SummaryScreen'
export * from './SubmittedScreen'
export * from './CommentsScreen'
export * from './InvolvedPartyScreen'

0 comments on commit 4ef591a

Please sign in to comment.