Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Project/Desktops.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const ProjectDesktops = (): JSX.Element => {
<>
<Modal ref={modalRef} />
<TitleBar
title={`Desktops: ${project?.title || ''} `}
title={`Desktops: ${project?.title.replace(/-/g, ' ') || ''} `}
description={
'Desktops are shared accross members and can be used to run applications on projects data.'
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Project/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Data = () => {

return (
<Box sx={{ mb: 2 }}>
<TitleBar title={`Files: ${selectedProject?.title || ''} `} />
<TitleBar title={`Files: ${selectedProject?.title.replace(/-/g, ' ') || ''} `} />

<Box sx={{ mt: 2 }}>
<Box elevation={2} component={Paper} sx={{ mt: 2, mb: 2 }}>
Expand All @@ -38,7 +38,7 @@ const Data = () => {
<Box sx={{ mt: 2 }}>
<Box elevation={2} component={Paper} sx={{ p: 1, flex: '1 0' }}>
<Typography variant='h6'>
{selectedProject?.title || ''} Files
{selectedProject?.title.replace(/-/g, ' ') || ''} Files
</Typography>

<Box
Expand Down
4 changes: 2 additions & 2 deletions src/components/Project/TransferData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ export default function TransferData() {
?.map(center => center.label)
.join(', ') || null

const projectTitle = selectedProject?.title || ''
const projectTitle = selectedProject?.title.replace(/-/g, ' ') || ''

return (
<Box sx={{ mb: 2 }}>
<TitleBar
title={`Transfer data to ${selectedProject?.title || ''} `}
title={`Transfer data to ${projectTitle} `}
description='Transfer center data to a project '
/>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Project/Workspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const ProjectDashboard = () => {
<>
<Modal ref={modalRef} />
<Box sx={{ mb: 2 }}>
<TitleBar title={`${project?.title || ''} `} />
<TitleBar title={`${project?.title.replace(/-/g, ' ') || ''} `} />

<Box
sx={{ display: 'flex', flexWrap: 'wrap', gap: '16px 16px', mt: 2 }}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projects/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const ProjectCard = ({ project, users }: Props) => {
alignItems: 'center',
}}
>
<Typography variant='h6'>{project?.title}</Typography>
<Typography variant='h6'>{project?.title.replace(/-/g, ' ')}</Typography>
<Avatar
sx={{ bgcolor: '#174040', width: 48, height: 48 }}
aria-label='project'
Expand Down
4 changes: 2 additions & 2 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const Sidebar = () => {
<ListItemIcon>
<Folder />
</ListItemIcon>
<ListItemText primary={`${project.title}`} />
<ListItemText primary={`${project.title.replace(/-/g, ' ')}`} />
{openProjects[project.name] ? <ExpandLess /> : <ExpandMore />}
</ListItemButton>
<Collapse
Expand Down Expand Up @@ -455,7 +455,7 @@ const Sidebar = () => {
<ListItemIcon>
<Folder />
</ListItemIcon>
<ListItemText primary={`${project.title}`} />
<ListItemText primary={`${project.title.replace(/-/g, ' ')}`} />
{openProjects[project.name] ? <ExpandLess /> : <ExpandMore />}
</ListItemButton>
<Collapse
Expand Down