Renaming workspaceComponent to workspace

This commit is contained in:
Jesús Espino 2021-03-27 10:17:05 +01:00
parent a550988f35
commit e91b7b5f3b
3 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
.WorkspaceComponent {
.Workspace {
flex: 1 1 auto;
display: flex;
flex-direction: row;

View file

@ -9,7 +9,7 @@ import {WorkspaceTree} from '../viewModel/workspaceTree'
import Sidebar from './sidebar'
import CenterPanel from './centerPanel'
import './workspaceComponent.scss'
import './workspace.scss'
type Props = {
workspaceTree: WorkspaceTree
@ -21,13 +21,13 @@ type Props = {
readonly: boolean
}
class WorkspaceComponent extends React.PureComponent<Props> {
class Workspace extends React.PureComponent<Props> {
render(): JSX.Element {
const {boardTree, workspaceTree, showBoard, showView, setLanguage} = this.props
Utils.assert(workspaceTree || !this.props.readonly)
const element = (
<div className='WorkspaceComponent'>
<div className='Workspace'>
{!this.props.readonly &&
<Sidebar
showBoard={showBoard}
@ -41,7 +41,7 @@ class WorkspaceComponent extends React.PureComponent<Props> {
{(boardTree?.board.isTemplate) &&
<div className='banner'>
<FormattedMessage
id='WorkspaceComponent.editing-board-template'
id='Workspace.editing-board-template'
defaultMessage="You're editing a board template"
/>
</div>
@ -72,4 +72,4 @@ class WorkspaceComponent extends React.PureComponent<Props> {
}
}
export {WorkspaceComponent}
export default Workspace

View file

@ -5,7 +5,7 @@ import {injectIntl, IntlShape} from 'react-intl'
import {IBlock} from '../blocks/block'
import {sendFlashMessage} from '../components/flashMessages'
import {WorkspaceComponent} from '../components/workspaceComponent'
import Workspace from '../components/workspace'
import mutator from '../mutator'
import octoClient from '../octoClient'
import {OctoListener} from '../octoListener'
@ -163,7 +163,7 @@ class BoardPage extends React.Component<Props, State> {
return (
<div className='BoardPage'>
<WorkspaceComponent
<Workspace
workspaceTree={workspaceTree}
boardTree={this.state.boardTree}
showView={(id, boardId) => {