File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/app/components/elements Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import { PageNavigation } from "../../services/navigation" ;
3
3
import { Link } from "react-router-dom" ;
4
+ import { TrustedHtml } from "./TrustedHtml" ;
4
5
5
6
export const NavigationLinks = ( { navigation} : { navigation : PageNavigation } ) => {
6
7
const backToCollectionLink = navigation . backToCollection && < div className = "w-50 w-md-auto mb-4" >
7
8
< Link to = { navigation . backToCollection . to } >
8
9
< div className = "isaac-nav-link text-decoration-none" > { navigation . collectionType } :</ div >
9
- < div className = "isaac-nav-link a-alt d-block lrg-text text-dark font-weight-bold" > { navigation . backToCollection . title } </ div >
10
+ < div className = "isaac-nav-link a-alt d-block lrg-text text-dark font-weight-bold" > < TrustedHtml html = { navigation . backToCollection . title } /> </ div >
10
11
</ Link >
11
12
</ div > ;
12
13
13
14
const nextItemLink = navigation . nextItem && < div className = "w-50 w-md-auto text-right mb-4" >
14
15
< Link to = { { pathname : navigation . nextItem . to , search : navigation . queryParams } } >
15
- < div className = "isaac-nav-link float-right a-alt lrg-text font-weight-bold" > { navigation . nextItem . title } </ div >
16
+ < div className = "isaac-nav-link float-right a-alt lrg-text font-weight-bold" > < TrustedHtml html = { navigation . nextItem . title } /> </ div >
16
17
< div className = "isaac-nav-link float-right next-link" > Next</ div >
17
18
</ Link >
18
19
</ div > ;
19
20
20
21
const previousItemLink = navigation . previousItem && < div className = "w-50 w-md-auto text-left mb-4" >
21
22
< Link to = { { pathname : navigation . previousItem . to , search : navigation . queryParams } } >
22
- < div className = "isaac-nav-link float-left a-alt lrg-text font-weight-bold" > { navigation . previousItem . title } </ div >
23
+ < div className = "isaac-nav-link float-left a-alt lrg-text font-weight-bold" > < TrustedHtml html = { navigation . previousItem . title } /> </ div >
23
24
< div className = "isaac-nav-link float-left previous-link" > Previous</ div >
24
25
</ Link >
25
26
</ div > ;
You can’t perform that action at this time.
0 commit comments