chore: replace function expression with inline statement

replace destructuring for better static analysis

remove unused variables
This commit is contained in:
Christian Andolf
2024-11-05 10:14:52 +01:00
parent 28c30b2416
commit f6b3cf8b92
25 changed files with 75 additions and 78 deletions

View File

@@ -13,7 +13,7 @@ export default function ShowMoreButton({
disabled,
loadMoreData,
}: ShowMoreButtonParams) {
const { formatMessage } = useIntl()
const intl = useIntl()
return (
<div className={styles.container}>
<Button
@@ -25,7 +25,7 @@ export default function ShowMoreButton({
intent="text"
>
<ChevronDownIcon />
{formatMessage({ id: "Show more" })}
{intl.formatMessage({ id: "Show more" })}
</Button>
</div>
)