Skip to content

Commit 76aaabb

Browse files
committed
refactor: unnecessary use client usage
1 parent dfcd073 commit 76aaabb

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

apps/site/components/Downloads/DownloadsTable/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use client';
2-
31
import { useTranslations } from 'next-intl';
42
import type { FC } from 'react';
53

apps/site/components/Downloads/MinorReleasesTable/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use client';
2-
31
import { CodeBracketSquareIcon } from '@heroicons/react/24/outline';
42
import Separator from '@node-core/ui-components/Common/Separator';
53
import NpmIcon from '@node-core/ui-components/Icons/PackageManager/Npm';
@@ -20,18 +18,20 @@ type MinorReleasesTableProps = {
2018
};
2119

2220
const MinorReleasesTable: FC<MinorReleasesTableProps> = ({ releases }) => {
23-
const t = useTranslations('components');
21+
const t = useTranslations();
2422

2523
return (
2624
<div className={styles.scrollable}>
2725
<table>
2826
<thead className={styles.stickyHeader}>
2927
<tr>
30-
<th>{t('minorReleasesTable.version')}</th>
28+
<th>{t('components.minorReleasesTable.version')}</th>
3129
<th className={styles.information}>
32-
{t('minorReleasesTable.information')}
30+
{t('components.minorReleasesTable.information')}
31+
</th>
32+
<th className={styles.links}>
33+
{t('components.minorReleasesTable.links')}
3334
</th>
34-
<th className={styles.links}>{t('minorReleasesTable.links')}</th>
3535
</tr>
3636
</thead>
3737
<tbody>
@@ -49,7 +49,7 @@ const MinorReleasesTable: FC<MinorReleasesTableProps> = ({ releases }) => {
4949
<ReleaseOverviewItem
5050
Icon={CodeBracketSquareIcon}
5151
title={`v${release.modules}`}
52-
subtitle={t('releaseOverview.nApiVersion')}
52+
subtitle={t('components.releaseOverview.nApiVersion')}
5353
/>
5454
<Separator orientation="vertical" />
5555
</>
@@ -59,15 +59,15 @@ const MinorReleasesTable: FC<MinorReleasesTableProps> = ({ releases }) => {
5959
<ReleaseOverviewItem
6060
Icon={NpmIcon}
6161
title={`v${release.npm}`}
62-
subtitle={t('releaseOverview.npmVersion')}
62+
subtitle={t('components.releaseOverview.npmVersion')}
6363
/>
6464
<Separator orientation="vertical" />
6565
</>
6666
)}
6767
<ReleaseOverviewItem
6868
Icon={CodeBracketSquareIcon}
6969
title={`v${release.v8}`}
70-
subtitle={t('releaseOverview.v8Version')}
70+
subtitle={t('components.releaseOverview.v8Version')}
7171
/>
7272
</div>
7373
</td>
@@ -77,14 +77,14 @@ const MinorReleasesTable: FC<MinorReleasesTableProps> = ({ releases }) => {
7777
kind="neutral"
7878
href={getNodeApiUrl(`v${release.version}`)}
7979
>
80-
{t('minorReleasesTable.actions.docs')}
80+
{t('components.minorReleasesTable.actions.docs')}
8181
</Link>
8282
<Separator orientation="vertical" />
8383
<LinkWithArrow
8484
kind="neutral"
8585
href={`${BASE_CHANGELOG_URL}${release.version}`}
8686
>
87-
{t('minorReleasesTable.actions.changelog')}
87+
{t('components.minorReleasesTable.actions.changelog')}
8888
</LinkWithArrow>
8989
</div>
9090
</td>

0 commit comments

Comments
 (0)