Skip to content

Commit ef51f5c

Browse files
committed
destructure and cleanup.
net, more lines of code, shrug
1 parent 37df55b commit ef51f5c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

apps/site/components/EOL/EOLModal/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ const EOLModal: FC<EOLModalProps> = ({
2121
}) => {
2222
const t = useTranslations();
2323

24-
const modalHeading = release.codename
24+
const { codename, major: version } = release;
25+
26+
const modalHeading = codename
2527
? t('components.eolModal.title', {
26-
version: release.major,
27-
codename: release.codename,
28+
version,
29+
codename,
2830
})
29-
: t('components.eolModal.titleWithoutCodename', { version: release.major });
31+
: t('components.eolModal.titleWithoutCodename', { version });
3032

3133
useMemo(
3234
() =>

0 commit comments

Comments
 (0)