-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7df495
commit 45fab67
Showing
8 changed files
with
56 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import React from 'react'; | ||
|
||
import { type Pattern } from '@atj/forms'; | ||
import { type ParagraphElement } from '@atj/forms/src/config/elements/paragraph'; | ||
import { type FieldsetPattern, type Pattern } from '@atj/forms'; | ||
|
||
import { type FormElementComponent } from '../../../Form'; | ||
|
||
const FormSummary: FormElementComponent<Pattern<ParagraphElement>> = ({ | ||
const FormSummary: FormElementComponent<Pattern<FieldsetPattern>> = ({ | ||
pattern, | ||
children, | ||
}) => { | ||
return ( | ||
<> | ||
<p>{pattern.data.text}</p> | ||
</> | ||
<fieldset className="usa-fieldset"> | ||
<legend className="usa-legend">{pattern.legend}</legend> | ||
{children} | ||
</fieldset> | ||
); | ||
}; | ||
export default FormSummary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters