Skip to content

Commit cd320fd

Browse files
committed
without ExternalLink.svg
1 parent f704e32 commit cd320fd

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

frontend-next-migration/src/preparedPages/PRGPage/ui/PRGPage.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@
8484
font: var(--font-dm-m, inherit);
8585
line-height: var(--font-line-m, 1.3);
8686
white-space: nowrap;
87+
color: var(--primary-color, #000);
88+
}
89+
90+
.externalLinkIcon {
91+
color: var(--primary-color, #000);
92+
width: 15px;
93+
height: 15px;
8794
}
8895

8996
.icon {

frontend-next-migration/src/preparedPages/PRGPage/ui/PRGPage.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { PageTitle } from '@/shared/ui/PageTitle';
44
import type { TFunction } from 'i18next';
55
import { useClientTranslation } from '@/shared/i18n';
66
import prgDeveloper from '@/shared/assets/images/prgDeveloper.png';
7-
import ExternalLink from '@/shared/assets/icons/ExternalLink.svg';
87
import Image, { StaticImageData } from 'next/image';
98
import { AppLink } from '@/shared/ui/AppLink/AppLink';
109
import useSizes from '@/shared/lib/hooks/useSizes';
@@ -13,6 +12,8 @@ import Esa from '@/shared/assets/images/board/esa.png';
1312
import Emmi_Irina from '@/shared/assets/images/board/emmi-irina.png';
1413
import { AppExternalLinks } from '@/shared/appLinks/appExternalLinks';
1514
import { classNames } from '@/shared/lib/classNames/classNames';
15+
import { faExternalLink } from '@fortawesome/free-solid-svg-icons';
16+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
1617

1718
type PrgT = TFunction<'prg'>;
1819

@@ -29,11 +30,9 @@ const CheckPdfButton = (checkPdfButtonProps: CheckPdfButtonProps) => (
2930
isExternal={true}
3031
>
3132
<span className={cls.label}>{checkPdfButtonProps.t('check-pdf')}</span>
32-
<Image
33-
className={cls.icon}
34-
src={ExternalLink}
35-
alt="icon"
36-
aria-hidden="true"
33+
<FontAwesomeIcon
34+
className={cls.externalLinkIcon}
35+
icon={faExternalLink}
3736
/>
3837
</AppLink>
3938
);
@@ -190,11 +189,9 @@ const PRGPage = () => {
190189
<span className={classNames(cls.label, undefined, [cls.bold, cls.Underline])}>
191190
{t('alt-zone-team')}&nbsp;
192191
</span>
193-
<Image
194-
className={cls.icon}
195-
src={ExternalLink}
196-
alt="icon"
197-
aria-hidden="true"
192+
<FontAwesomeIcon
193+
className={cls.externalLinkIcon}
194+
icon={faExternalLink}
198195
/>
199196
</AppLink>
200197
</div>

0 commit comments

Comments
 (0)