Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit b2cc7a9

Browse files
committed
Removed global classes where possible.
1 parent 77f8685 commit b2cc7a9

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

src/components/Popup/index.jsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ const Popup = ({
3535
return (
3636
<div
3737
ref={setPopperElement}
38-
className={cn(compStyles.container, styles.container, className)}
38+
className={cn(compStyles.container, className)}
3939
style={styles.popper}
4040
{...attributes.popper}
4141
>
4242
{children}
43-
<div className="popup-arrow" ref={setArrowElement} style={styles.arrow} />
43+
<div
44+
className={compStyles.popupArrow}
45+
ref={setArrowElement}
46+
style={styles.arrow}
47+
/>
4448
</div>
4549
);
4650
};

src/components/Popup/styles.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
background: #fff;
88
box-shadow: $popover-box-shadow;
99

10-
:global(.popup-arrow) {
10+
.popupArrow {
1111
display: none;
1212
}
1313
}

src/routes/WorkPeriods/components/PeriodItem/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const PeriodItem = ({
158158
</tr>
159159
{details && (
160160
<PeriodDetails
161-
className="period-details"
161+
className={styles.periodDetails}
162162
details={details}
163163
isDisabled={isDisabled}
164164
isFailed={isFailed}

src/routes/WorkPeriods/components/PeriodItem/styles.module.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
}
4242

43-
:global(.period-details) {
43+
.periodDetails {
4444
+ .container.hasDetails {
4545
> td {
4646
&.toggle {

src/routes/WorkPeriods/components/PeriodListHead/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const PeriodListHead = () => {
5353
</th>
5454
{HEAD_CELLS.map(({ id, className, label, disableSort }) => (
5555
<th key={id}>
56-
<div className={cn(styles.colHead, className)}>
56+
<div className={cn(styles.colHead, styles[className])}>
5757
<span className={styles.colLabel}>{label}</span>
5858
{!disableSort && (
5959
<SortingControl

src/routes/WorkPeriods/components/PeriodListHead/styles.module.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@
4343
}
4444
}
4545

46-
:global(.startDate),
47-
:global(.endDate) {
46+
.startDate,
47+
.endDate {
4848
padding-left: 10px;
4949
padding-right: 10px;
5050
}
5151

52-
:global(.weeklyRate),
53-
:global(.totalPaid) {
52+
.weeklyRate,
53+
.totalPaid {
5454
justify-content: flex-end;
5555
}
5656
}

0 commit comments

Comments
 (0)