mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
internal links now use the Link component instead of the LinkContainer component, because the later is intended for use with react-bootstrap components and not for simple translated strings.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
a376c95fab
commit
575407ab6d
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
import React, { Fragment } from 'react'
|
import React, { Fragment } from 'react'
|
||||||
import { LinkContainer } from 'react-router-bootstrap'
|
import { Link } from 'react-router-dom'
|
||||||
import { ForkAwesomeIcon } from '../../fork-awesome/fork-awesome-icon'
|
import { ForkAwesomeIcon } from '../../fork-awesome/fork-awesome-icon'
|
||||||
import { LinkWithTextProps } from './types'
|
import { LinkWithTextProps } from './types'
|
||||||
|
|
||||||
export const InternalLink: React.FC<LinkWithTextProps> = ({ href, text, icon, className = 'text-light' }) => {
|
export const InternalLink: React.FC<LinkWithTextProps> = ({ href, text, icon, className = 'text-light' }) => {
|
||||||
return (
|
return (
|
||||||
<LinkContainer to={href}
|
<Link to={href}
|
||||||
className={className}>
|
className={className}>
|
||||||
<Fragment>
|
<Fragment>
|
||||||
{
|
{
|
||||||
|
@ -17,6 +17,6 @@ export const InternalLink: React.FC<LinkWithTextProps> = ({ href, text, icon, cl
|
||||||
}
|
}
|
||||||
{text}
|
{text}
|
||||||
</Fragment>
|
</Fragment>
|
||||||
</LinkContainer>
|
</Link>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue