Skip to content

Commit

Permalink
Remove title in Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
guergana committed Oct 21, 2024
1 parent 5eef6c0 commit 80d5908
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions client/components/Application/Dialogs/Publish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Box from '@mui/material/Box'
import Link from '@mui/material/Link'
import LinearProgress from '@mui/material/LinearProgress'
import CheckIcon from '@mui/icons-material/Check'
import ConfirmDialog from '../../Parts/Dialogs/OneButton'
import OneButtonDialog from '../../Parts/Dialogs/OneButton'
import PortalEditor from '../../Editors/Portal'
import * as helpers from '../../../helpers'
import * as types from '../../../types'
Expand All @@ -29,7 +29,7 @@ export default function PublishDialog() {
}

return (
<ConfirmDialog
<OneButtonDialog
open={true}
disabled={!control}
maxWidth="md"
Expand Down Expand Up @@ -62,6 +62,6 @@ export default function PublishDialog() {
</Link>{' '}
</Box>
)}
</ConfirmDialog>
</OneButtonDialog>
)
}
4 changes: 2 additions & 2 deletions client/components/Editors/Base/Section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Columns from '../../Parts/Grids/Columns'
import HeadingBox from './Heading/Box'

export interface EditorItemProps {
name: string
name?: string
onHeadingClick?: () => void
onBackClick?: () => void
}
Expand All @@ -26,7 +26,7 @@ export default function EditorItem(props: React.PropsWithChildren<EditorItemProp
<React.Fragment>
<HeadingBox onClick={() => props.onHeadingClick && props.onHeadingClick()}>
<Columns spacing={1} layout={[6, 6]}>
<Box>{props.name}</Box>
{props.name ? <Box>{props.name}</Box> : null}
<Box sx={{ float: 'right' }}>
<BackButton />
</Box>
Expand Down
2 changes: 1 addition & 1 deletion client/components/Editors/Portal/Sections/Ckan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Box from '@mui/material/Box'
export default function CkanSection() {
const updateHelp = useStore((state) => state.updateHelp)
return (
<EditorSection name="Ckan" onHeadingClick={() => updateHelp('ckan')}>
<EditorSection onHeadingClick={() => updateHelp('ckan')}>
<Box sx={{ display: 'flex', justifyContent: 'space-around' }}>
<Baseurl />
<Dataset />
Expand Down
2 changes: 1 addition & 1 deletion client/components/Editors/Portal/Sections/Github.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Box from '@mui/material/Box'
export default function GithubSection() {
const updateHelp = useStore((state) => state.updateHelp)
return (
<EditorSection name="Github" onHeadingClick={() => updateHelp('github')}>
<EditorSection onHeadingClick={() => updateHelp('github')}>
<Box sx={{ display: 'flex', justifyContent: 'space-around' }}>
{' '}
<User />
Expand Down
2 changes: 1 addition & 1 deletion client/components/Editors/Portal/Sections/Zenodo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Box from '@mui/material/Box'
export default function ZenodoSection() {
const updateHelp = useStore((state) => state.updateHelp)
return (
<EditorSection name="Zenodo" onHeadingClick={() => updateHelp('zenodo')}>
<EditorSection onHeadingClick={() => updateHelp('zenodo')}>
<Box sx={{ display: 'flex', justifyContent: 'space-around' }}>
{' '}
<Title />
Expand Down

0 comments on commit 80d5908

Please sign in to comment.