Skip to content

Commit

Permalink
fix(DatasetActionButton): single button fix border styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MellyGray committed Oct 6, 2023
1 parent 6685508 commit 3bad83e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ export function DatasetActionButtons({ dataset }: DatasetActionButtonsProps) {
<PublishDatasetMenu dataset={dataset} />
<SubmitForReviewButton dataset={dataset} />
<EditDatasetMenu dataset={dataset} />
<ButtonGroup>
<LinkDatasetButton dataset={dataset} />
</ButtonGroup>
<LinkDatasetButton dataset={dataset} />
</ButtonGroup>
)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from '@iqss/dataverse-design-system'
import { Button, ButtonGroup } from '@iqss/dataverse-design-system'
import { Dataset, DatasetPublishingStatus } from '../../../../dataset/domain/models/Dataset'
import { useTranslation } from 'react-i18next'
import { useSession } from '../../../session/SessionContext'
Expand All @@ -17,5 +17,9 @@ export function LinkDatasetButton({ dataset }: LinkDatasetButtonProps) {
return <></>
}

return <Button variant="secondary">{t('datasetActionButtons.linkDataset.title')}</Button>
return (
<ButtonGroup>
<Button variant="secondary">{t('datasetActionButtons.linkDataset.title')}</Button>
</ButtonGroup>
)
}

0 comments on commit 3bad83e

Please sign in to comment.