-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #861 from City-of-Helsinki/UHF-9156-update-hds-to-v3
UHF-9156: Update HDS to v3
- Loading branch information
Showing
20 changed files
with
1,115 additions
and
388 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.18.0 | ||
18.19.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
24 changes: 12 additions & 12 deletions
24
src/js/react/apps/ploughing-schedule/components/ResultCard.tsx
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,21 +1,21 @@ | ||
import { ForwardedRef, forwardRef } from 'react'; | ||
|
||
type CardProps = { | ||
description: String; | ||
lead?: String; | ||
title: String; | ||
title: string; | ||
lead?: string; | ||
description: string | JSX.Element | JSX.Element[]; | ||
} | ||
|
||
const ResultCard = forwardRef(({description, lead, title}: CardProps, ref: ForwardedRef<HTMLDivElement>) => ( | ||
<div className='hdbt-search--ploughing-schedule__result-card' ref={ref}> | ||
<h3 className='hdbt-search--ploughing-schedule__result-card--title hdbt-search--title'>{ title }</h3> | ||
<div> | ||
{ lead && | ||
<p>{lead}</p> | ||
} | ||
<p>{ description }</p> | ||
</div> | ||
<div className='hdbt-search--ploughing-schedule__result-card' ref={ref}> | ||
<h3 className='hdbt-search--ploughing-schedule__result-card--title hdbt-search--title'>{ title }</h3> | ||
<div> | ||
{ lead && | ||
<p>{lead}</p> | ||
} | ||
<p>{ description }</p> | ||
</div> | ||
)); | ||
</div> | ||
)); | ||
|
||
export default ResultCard; |
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
11 changes: 4 additions & 7 deletions
11
src/js/react/apps/ploughing-schedule/helpers/GetScheduleCard.ts
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