Skip to content

Commit

Permalink
make richtext input
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Apr 8, 2024
1 parent c4d7d89 commit 854209b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function PlanningConstraintsComponent(props: Props) {
</InputGroup>
<InputGroup label="Planning conditions disclaimer">
<InputRow>
<Input
<RichTextInput
name="disclaimer"
placeholder="Planning conditions disclaimer"
value={formik.values.disclaimer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
type IntersectingConstraints,
type PlanningConstraints,
} from "./model";
import ReactMarkdownOrHtml from "ui/shared/ReactMarkdownOrHtml";

type Props = PublicProps<PlanningConstraints>;

Expand Down Expand Up @@ -281,8 +282,8 @@ export function PlanningConstraintsContent(
const Disclaimer = (props: { text: string }) => (
<WarningContainer>
<ErrorOutline />
<Typography variant="body1" ml={2} fontWeight={FONT_WEIGHT_SEMI_BOLD}>
{props.text || DEFAULT_PLANNING_CONDITIONS_DISCLAIMER}
<Typography variant="body1" component="div" ml={2} mb={1}>
<ReactMarkdownOrHtml source={props.text || DEFAULT_PLANNING_CONDITIONS_DISCLAIMER} openLinksOnNewTab />
</Typography>
</WarningContainer>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ export const parseContent = (
export type IntersectingConstraints = Record<string, string[]>;

export const DEFAULT_PLANNING_CONDITIONS_DISCLAIMER =
"This page does not include information about historic planning conditions that may apply to this property.";
"<p><strong>This page does not include information about historic planning conditions that may apply to this property.</strong></p>";

0 comments on commit 854209b

Please sign in to comment.