Skip to content

Commit 6e8d642

Browse files
committed
Remove unused SCSS and refactor hovers into single CSS class
1 parent 6447161 commit 6e8d642

File tree

4 files changed

+11
-21
lines changed

4 files changed

+11
-21
lines changed

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

Whitespace-only changes.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { ScrollTop } from '@/features/ScrollTop';
33
import { classNames } from '@/shared/lib/classNames/classNames';
44
import { WikiContentWithSidebar } from '@/shared/ui/v2/WikiContentWithSidebar';
5-
import cls from './EthicalGuidelinesPage.module.scss';
65

76
interface Section {
87
id: string;
@@ -24,7 +23,7 @@ const EthicalGuidelinesPage = (props: Props) => {
2423
const { sections = [], title } = props;
2524

2625
return (
27-
<div className={classNames(cls.pageContainer)}>
26+
<div>
2827
<WikiContentWithSidebar
2928
sections={sections}
3029
title={title}

frontend-next-migration/src/widgets/Footer/ui/Rights/Rights.module.scss

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,16 @@
1616
cursor: pointer;
1717
}
1818

19-
.resetCookies:hover {
20-
text-decoration: underline;
21-
color: orange;
22-
}
23-
.cookies:hover {
24-
text-decoration: underline;
25-
color: orange;
26-
}
27-
.privacy:hover {
28-
text-decoration: underline;
29-
color: orange;
19+
.linkHover {
20+
&:hover {
21+
text-decoration: underline;
22+
color: orange;
23+
}
3024
}
25+
3126
.ethics {
3227
white-space: nowrap;
3328
}
34-
.ethics:hover {
35-
text-decoration: underline;
36-
color: orange;
37-
}
3829

3930
.RightContainer {
4031
display: flex;

frontend-next-migration/src/widgets/Footer/ui/Rights/Rights.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ export const Rights = memo((props: RightsProps) => {
2727
<div className={cls.RightContainer}>
2828
<p className={cls.RightLinkContainer}>
2929
<AppLink
30-
className={cls.cookies}
30+
className={classNames(cls.cookies, {}, [cls.linkHover])}
3131
to={getRouteCookiesPage()}
3232
>
3333
{cookies}
3434
</AppLink>{' '}
3535
<AppLink
36-
className={cls.privacy}
36+
className={classNames(cls.privacy, {}, [cls.linkHover])}
3737
to={getRoutePrivacyPage()}
3838
>
3939
{privacy}
4040
</AppLink>
4141
<span
4242
onClick={handleResetCookies}
43-
className={cls.resetCookies}
43+
className={classNames(cls.resetCookies, {}, [cls.linkHover])}
4444
>
4545
{consent}
4646
</span>
4747
<AppLink
48-
className={cls.ethics}
48+
className={classNames(cls.ethics, {}, [cls.linkHover])}
4949
to={getRouteEthicalGuidelinesPage()}
5050
>
5151
{ethics}

0 commit comments

Comments
 (0)