1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-30 08:36:54 +02:00

Remove unneeded withRouter decorator

This commit is contained in:
Jesús Espino 2021-05-10 15:25:57 +02:00
parent 323f02f7ac
commit 2ee1d8aece

View File

@ -3,7 +3,6 @@
import React, {useState, useEffect} from 'react'
import {FormattedMessage, useIntl} from 'react-intl'
import {useRouteMatch} from 'react-router'
import {withRouter, RouteComponentProps} from 'react-router-dom'
import {ISharing} from '../blocks/sharing'
@ -18,7 +17,7 @@ import Switch from '../widgets/switch'
import Modal from './modal'
import './shareBoardComponent.scss'
type Props = RouteComponentProps<{workspaceId?: string}> & {
type Props = {
boardId: string
onClose: () => void
}
@ -149,4 +148,4 @@ const ShareBoardComponent = React.memo((props: Props): JSX.Element => {
)
})
export default withRouter(ShareBoardComponent)
export default ShareBoardComponent