refactor(SW-194): use design system button

This commit is contained in:
Matilda Landström
2024-10-10 10:10:08 +02:00
parent 11d59932af
commit c7386ca254
4 changed files with 21 additions and 13 deletions
@@ -16,6 +16,8 @@ export default function ShowMoreButton({
intent,
disabled,
showLess,
textShowMore = "Show less",
textShowLess = "Show more",
loadMoreData,
}: ShowMoreButtonProps) {
const intl = useIntl()
@@ -36,7 +38,7 @@ export default function ShowMoreButton({
intent="text"
>
<ChevronDownIcon className={styles.icon} />
{intl.formatMessage({ id: showLess ? "Show less" : "Show more" })}
{intl.formatMessage({ id: showLess ? textShowLess : textShowMore })}
</Button>
</div>
)