mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-04-23 03:27:51 +00: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 { LinkContainer } from 'react-router-bootstrap'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { ForkAwesomeIcon } from '../../fork-awesome/fork-awesome-icon'
|
||||
import { LinkWithTextProps } from './types'
|
||||
|
||||
export const InternalLink: React.FC<LinkWithTextProps> = ({ href, text, icon, className = 'text-light' }) => {
|
||||
return (
|
||||
<LinkContainer to={href}
|
||||
<Link to={href}
|
||||
className={className}>
|
||||
<Fragment>
|
||||
{
|
||||
|
@ -17,6 +17,6 @@ export const InternalLink: React.FC<LinkWithTextProps> = ({ href, text, icon, cl
|
|||
}
|
||||
{text}
|
||||
</Fragment>
|
||||
</LinkContainer>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue