Skip to content

Commit ca52257

Browse files
committed
fix: warnings
1 parent 8d7ac99 commit ca52257

File tree

7 files changed

+41
-55
lines changed

7 files changed

+41
-55
lines changed

client/src/assets/FilterIcon.jsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@ export const FilterIcon = () => {
88
fill="none"
99
>
1010
<path
11-
fill-rule="evenodd"
12-
clip-rule="evenodd"
11+
fillRule="evenodd"
12+
clipRule="evenodd"
1313
d="M2.66667 8.6665C3.03486 8.6665 3.33333 8.96498 3.33333 9.33317V13.9998C3.33333 14.368 3.03486 14.6665 2.66667 14.6665C2.29848 14.6665 2 14.368 2 13.9998V9.33317C2 8.96498 2.29848 8.6665 2.66667 8.6665Z"
1414
fill="#2D3748"
1515
/>
1616
<path
17-
fill-rule="evenodd"
18-
clip-rule="evenodd"
17+
fillRule="evenodd"
18+
clipRule="evenodd"
1919
d="M2.66667 1.3335C3.03486 1.3335 3.33333 1.63197 3.33333 2.00016V6.66683C3.33333 7.03502 3.03486 7.3335 2.66667 7.3335C2.29848 7.3335 2 7.03502 2 6.66683V2.00016C2 1.63197 2.29848 1.3335 2.66667 1.3335Z"
2020
fill="#2D3748"
2121
/>
2222
<path
23-
fill-rule="evenodd"
24-
clip-rule="evenodd"
23+
fillRule="evenodd"
24+
clipRule="evenodd"
2525
d="M8.00065 7.3335C8.36884 7.3335 8.66732 7.63197 8.66732 8.00016V14.0002C8.66732 14.3684 8.36884 14.6668 8.00065 14.6668C7.63246 14.6668 7.33398 14.3684 7.33398 14.0002V8.00016C7.33398 7.63197 7.63246 7.3335 8.00065 7.3335Z"
2626
fill="#2D3748"
2727
/>
2828
<path
29-
fill-rule="evenodd"
30-
clip-rule="evenodd"
29+
fillRule="evenodd"
30+
clipRule="evenodd"
3131
d="M8.00065 1.3335C8.36884 1.3335 8.66732 1.63197 8.66732 2.00016V5.3335C8.66732 5.70169 8.36884 6.00016 8.00065 6.00016C7.63246 6.00016 7.33398 5.70169 7.33398 5.3335V2.00016C7.33398 1.63197 7.63246 1.3335 8.00065 1.3335Z"
3232
fill="#2D3748"
3333
/>
3434
<path
35-
fill-rule="evenodd"
36-
clip-rule="evenodd"
35+
fillRule="evenodd"
36+
clipRule="evenodd"
3737
d="M13.3327 10C13.7009 10 13.9993 10.2985 13.9993 10.6667V14C13.9993 14.3682 13.7009 14.6667 13.3327 14.6667C12.9645 14.6667 12.666 14.3682 12.666 14V10.6667C12.666 10.2985 12.9645 10 13.3327 10Z"
3838
fill="#2D3748"
3939
/>
4040
<path
41-
fill-rule="evenodd"
42-
clip-rule="evenodd"
41+
fillRule="evenodd"
42+
clipRule="evenodd"
4343
d="M13.3327 1.3335C13.7009 1.3335 13.9993 1.63197 13.9993 2.00016V8.00016C13.9993 8.36835 13.7009 8.66683 13.3327 8.66683C12.9645 8.66683 12.666 8.36835 12.666 8.00016V2.00016C12.666 1.63197 12.9645 1.3335 13.3327 1.3335Z"
4444
fill="#2D3748"
4545
/>
4646
<path
47-
fill-rule="evenodd"
48-
clip-rule="evenodd"
47+
fillRule="evenodd"
48+
clipRule="evenodd"
4949
d="M0 9.33317C0 8.96498 0.298477 8.6665 0.666667 8.6665H4.66667C5.03486 8.6665 5.33333 8.96498 5.33333 9.33317C5.33333 9.70136 5.03486 9.99984 4.66667 9.99984H0.666667C0.298477 9.99984 0 9.70136 0 9.33317Z"
5050
fill="#2D3748"
5151
/>

client/src/assets/FilterIcons.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ export const PayerIcon = () => {
5959
export const FilterIcon = () => {
6060
return (
6161
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
62-
<path fill-rule="evenodd" clipRule="evenodd" d="M2.66667 8.66699C3.03486 8.66699 3.33333 8.96547 3.33333 9.33366V14.0003C3.33333 14.3685 3.03486 14.667 2.66667 14.667C2.29848 14.667 2 14.3685 2 14.0003V9.33366C2 8.96547 2.29848 8.66699 2.66667 8.66699Z" fill="#2D3748"/>
63-
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.66667 1.33301C3.03486 1.33301 3.33333 1.63148 3.33333 1.99967V6.66634C3.33333 7.03453 3.03486 7.33301 2.66667 7.33301C2.29848 7.33301 2 7.03453 2 6.66634V1.99967C2 1.63148 2.29848 1.33301 2.66667 1.33301Z" fill="#2D3748"/>
64-
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99992 7.33301C8.36811 7.33301 8.66659 7.63148 8.66659 7.99967V13.9997C8.66659 14.3679 8.36811 14.6663 7.99992 14.6663C7.63173 14.6663 7.33325 14.3679 7.33325 13.9997V7.99967C7.33325 7.63148 7.63173 7.33301 7.99992 7.33301Z" fill="#2D3748"/>
65-
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.99992 1.33301C8.36811 1.33301 8.66659 1.63148 8.66659 1.99967V5.33301C8.66659 5.7012 8.36811 5.99967 7.99992 5.99967C7.63173 5.99967 7.33325 5.7012 7.33325 5.33301V1.99967C7.33325 1.63148 7.63173 1.33301 7.99992 1.33301Z" fill="#2D3748"/>
66-
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.3334 10C13.7016 10 14.0001 10.2985 14.0001 10.6667V14C14.0001 14.3682 13.7016 14.6667 13.3334 14.6667C12.9652 14.6667 12.6667 14.3682 12.6667 14V10.6667C12.6667 10.2985 12.9652 10 13.3334 10Z" fill="#2D3748"/>
67-
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.3334 1.33301C13.7016 1.33301 14.0001 1.63148 14.0001 1.99967V7.99967C14.0001 8.36786 13.7016 8.66634 13.3334 8.66634C12.9652 8.66634 12.6667 8.36786 12.6667 7.99967V1.99967C12.6667 1.63148 12.9652 1.33301 13.3334 1.33301Z" fill="#2D3748"/>
68-
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 9.33366C0 8.96547 0.298477 8.66699 0.666667 8.66699H4.66667C5.03486 8.66699 5.33333 8.96547 5.33333 9.33366C5.33333 9.70185 5.03486 10.0003 4.66667 10.0003H0.666667C0.298477 10.0003 0 9.70185 0 9.33366Z" fill="#2D3748"/>
69-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.33325 5.33366C5.33325 4.96547 5.63173 4.66699 5.99992 4.66699H9.99992C10.3681 4.66699 10.6666 4.96547 10.6666 5.33366C10.6666 5.70185 10.3681 6.00033 9.99992 6.00033H5.99992C5.63173 6.00033 5.33325 5.70185 5.33325 5.33366Z" fill="#2D3748"/>
70-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.6667 10.6667C10.6667 10.2985 10.9652 10 11.3334 10H15.3334C15.7016 10 16.0001 10.2985 16.0001 10.6667C16.0001 11.0349 15.7016 11.3333 15.3334 11.3333H11.3334C10.9652 11.3333 10.6667 11.0349 10.6667 10.6667Z" fill="#2D3748"/>
62+
<path fillRule="evenodd" clipRule="evenodd" d="M2.66667 8.66699C3.03486 8.66699 3.33333 8.96547 3.33333 9.33366V14.0003C3.33333 14.3685 3.03486 14.667 2.66667 14.667C2.29848 14.667 2 14.3685 2 14.0003V9.33366C2 8.96547 2.29848 8.66699 2.66667 8.66699Z" fill="#2D3748"/>
63+
<path fillRule="evenodd" clipRule="evenodd" d="M2.66667 1.33301C3.03486 1.33301 3.33333 1.63148 3.33333 1.99967V6.66634C3.33333 7.03453 3.03486 7.33301 2.66667 7.33301C2.29848 7.33301 2 7.03453 2 6.66634V1.99967C2 1.63148 2.29848 1.33301 2.66667 1.33301Z" fill="#2D3748"/>
64+
<path fillRule="evenodd" clipRule="evenodd" d="M7.99992 7.33301C8.36811 7.33301 8.66659 7.63148 8.66659 7.99967V13.9997C8.66659 14.3679 8.36811 14.6663 7.99992 14.6663C7.63173 14.6663 7.33325 14.3679 7.33325 13.9997V7.99967C7.33325 7.63148 7.63173 7.33301 7.99992 7.33301Z" fill="#2D3748"/>
65+
<path fillRule="evenodd" clipRule="evenodd" d="M7.99992 1.33301C8.36811 1.33301 8.66659 1.63148 8.66659 1.99967V5.33301C8.66659 5.7012 8.36811 5.99967 7.99992 5.99967C7.63173 5.99967 7.33325 5.7012 7.33325 5.33301V1.99967C7.33325 1.63148 7.63173 1.33301 7.99992 1.33301Z" fill="#2D3748"/>
66+
<path fillRule="evenodd" clipRule="evenodd" d="M13.3334 10C13.7016 10 14.0001 10.2985 14.0001 10.6667V14C14.0001 14.3682 13.7016 14.6667 13.3334 14.6667C12.9652 14.6667 12.6667 14.3682 12.6667 14V10.6667C12.6667 10.2985 12.9652 10 13.3334 10Z" fill="#2D3748"/>
67+
<path fillRule="evenodd" clipRule="evenodd" d="M13.3334 1.33301C13.7016 1.33301 14.0001 1.63148 14.0001 1.99967V7.99967C14.0001 8.36786 13.7016 8.66634 13.3334 8.66634C12.9652 8.66634 12.6667 8.36786 12.6667 7.99967V1.99967C12.6667 1.63148 12.9652 1.33301 13.3334 1.33301Z" fill="#2D3748"/>
68+
<path fillRule="evenodd" clipRule="evenodd" d="M0 9.33366C0 8.96547 0.298477 8.66699 0.666667 8.66699H4.66667C5.03486 8.66699 5.33333 8.96547 5.33333 9.33366C5.33333 9.70185 5.03486 10.0003 4.66667 10.0003H0.666667C0.298477 10.0003 0 9.70185 0 9.33366Z" fill="#2D3748"/>
69+
<path fillRule="evenodd" clipRule="evenodd" d="M5.33325 5.33366C5.33325 4.96547 5.63173 4.66699 5.99992 4.66699H9.99992C10.3681 4.66699 10.6666 4.96547 10.6666 5.33366C10.6666 5.70185 10.3681 6.00033 9.99992 6.00033H5.99992C5.63173 6.00033 5.33325 5.70185 5.33325 5.33366Z" fill="#2D3748"/>
70+
<path fillRule="evenodd" clipRule="evenodd" d="M10.6667 10.6667C10.6667 10.2985 10.9652 10 11.3334 10H15.3334C15.7016 10 16.0001 10.2985 16.0001 10.6667C16.0001 11.0349 15.7016 11.3333 15.3334 11.3333H11.3334C10.9652 11.3333 10.6667 11.0349 10.6667 10.6667Z" fill="#2D3748"/>
7171
</svg>
7272
);
7373
};

client/src/assets/LocationPin.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const LocationPin = () => {
88
fill="none"
99
>
1010
<path
11-
fill-rule="evenodd"
12-
clip-rule="evenodd"
11+
fillRule="evenodd"
12+
clipRule="evenodd"
1313
d="M9.38565 18.4448C9.38565 18.4448 3.33398 13.3482 3.33398 8.33317C3.33398 6.56506 4.03636 4.86937 5.28661 3.61913C6.53685 2.36888 8.23254 1.6665 10.0007 1.6665C11.7688 1.6665 13.4645 2.36888 14.7147 3.61913C15.9649 4.86937 16.6673 6.56506 16.6673 8.33317C16.6673 13.3482 10.6157 18.4448 10.6157 18.4448C10.279 18.7548 9.72482 18.7515 9.38565 18.4448ZM10.0007 11.2498C10.3837 11.2498 10.7629 11.1744 11.1168 11.0278C11.4707 10.8812 11.7922 10.6664 12.063 10.3956C12.3339 10.1247 12.5487 9.8032 12.6953 9.44933C12.8419 9.09546 12.9173 8.71619 12.9173 8.33317C12.9173 7.95015 12.8419 7.57088 12.6953 7.21701C12.5487 6.86314 12.3339 6.54161 12.063 6.27078C11.7922 5.99994 11.4707 5.7851 11.1168 5.63852C10.7629 5.49195 10.3837 5.4165 10.0007 5.4165C9.2271 5.4165 8.48524 5.72379 7.93826 6.27078C7.39128 6.81776 7.08398 7.55962 7.08398 8.33317C7.08398 9.10672 7.39128 9.84858 7.93826 10.3956C8.48524 10.9425 9.2271 11.2498 10.0007 11.2498Z"
1414
fill="#718096"
1515
/>

client/src/assets/icons/ProgramIcons.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const sessionsClock = (props) => {
6868
export const sessionsMapPin = (props) => {
6969
return (
7070
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 21 21" fill="none">
71-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0645 19.2395C10.0645 19.2395 4.01282 14.1429 4.01282 9.12786C4.01282 7.35975 4.7152 5.66406 5.96544 4.41382C7.21568 3.16358 8.91137 2.4612 10.6795 2.4612C12.4476 2.4612 14.1433 3.16358 15.3935 4.41382C16.6438 5.66406 17.3462 7.35975 17.3462 9.12786C17.3462 14.1429 11.2945 19.2395 11.2945 19.2395C10.9578 19.5495 10.4037 19.5462 10.0645 19.2395ZM10.6795 12.0445C11.0625 12.0445 11.4418 11.9691 11.7956 11.8225C12.1495 11.6759 12.471 11.4611 12.7419 11.1903C13.0127 10.9194 13.2276 10.5979 13.3741 10.244C13.5207 9.89016 13.5962 9.51089 13.5962 9.12786C13.5962 8.74484 13.5207 8.36557 13.3741 8.0117C13.2276 7.65784 13.0127 7.33631 12.7419 7.06547C12.471 6.79463 12.1495 6.57979 11.7956 6.43322C11.4418 6.28664 11.0625 6.2112 10.6795 6.2112C9.90594 6.2112 9.16407 6.51849 8.61709 7.06547C8.07011 7.61245 7.76282 8.35432 7.76282 9.12786C7.76282 9.90141 8.07011 10.6433 8.61709 11.1903C9.16407 11.7372 9.90594 12.0445 10.6795 12.0445Z" fill="#767778"/>
71+
<path fillRule="evenodd" clipRule="evenodd" d="M10.0645 19.2395C10.0645 19.2395 4.01282 14.1429 4.01282 9.12786C4.01282 7.35975 4.7152 5.66406 5.96544 4.41382C7.21568 3.16358 8.91137 2.4612 10.6795 2.4612C12.4476 2.4612 14.1433 3.16358 15.3935 4.41382C16.6438 5.66406 17.3462 7.35975 17.3462 9.12786C17.3462 14.1429 11.2945 19.2395 11.2945 19.2395C10.9578 19.5495 10.4037 19.5462 10.0645 19.2395ZM10.6795 12.0445C11.0625 12.0445 11.4418 11.9691 11.7956 11.8225C12.1495 11.6759 12.471 11.4611 12.7419 11.1903C13.0127 10.9194 13.2276 10.5979 13.3741 10.244C13.5207 9.89016 13.5962 9.51089 13.5962 9.12786C13.5962 8.74484 13.5207 8.36557 13.3741 8.0117C13.2276 7.65784 13.0127 7.33631 12.7419 7.06547C12.471 6.79463 12.1495 6.57979 11.7956 6.43322C11.4418 6.28664 11.0625 6.2112 10.6795 6.2112C9.90594 6.2112 9.16407 6.51849 8.61709 7.06547C8.07011 7.61245 7.76282 8.35432 7.76282 9.12786C7.76282 9.90141 8.07011 10.6433 8.61709 11.1903C9.16407 11.7372 9.90594 12.0445 10.6795 12.0445Z" fill="#767778"/>
7272
</svg>
7373
)
7474
};

client/src/components/filters/FilterContainer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export const FilterContainer = ({ onApply, onReset, pageName, children }) => {
4242
return (
4343
<>
4444
<Button
45+
as="div"
4546
onClick={onOpen}
4647
leftIcon={<Icon as={FilterIcon} />}
4748
display="flex"

client/src/components/notifications/FilterButton.jsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,44 +57,44 @@ export const FilterButton = ({ setFilterType, currentFilter, onApply, onClear })
5757
fill="none"
5858
>
5959
<path
60-
fill-rule="evenodd"
61-
clip-rule="evenodd"
60+
fillRule="evenodd"
61+
clipRule="evenodd"
6262
d="M2.66667 8.66699C3.03486 8.66699 3.33333 8.96547 3.33333 9.33366V14.0003C3.33333 14.3685 3.03486 14.667 2.66667 14.667C2.29848 14.667 2 14.3685 2 14.0003V9.33366C2 8.96547 2.29848 8.66699 2.66667 8.66699Z"
6363
fill="#2b3746"
6464
/>
6565
<path
66-
fill-rule="evenodd"
67-
clip-rule="evenodd"
66+
fillRule="evenodd"
67+
clipRule="evenodd"
6868
d="M2.66667 1.33301C3.03486 1.33301 3.33333 1.63148 3.33333 1.99967V6.66634C3.33333 7.03453 3.03486 7.33301 2.66667 7.33301C2.29848 7.33301 2 7.03453 2 6.66634V1.99967C2 1.63148 2.29848 1.33301 2.66667 1.33301Z"
6969
fill="#2b3746"
7070
/>
7171
<path
72-
fill-rule="evenodd"
73-
clip-rule="evenodd"
72+
fillRule="evenodd"
73+
clipRule="evenodd"
7474
d="M7.99967 7.33301C8.36786 7.33301 8.66634 7.63148 8.66634 7.99967V13.9997C8.66634 14.3679 8.36786 14.6663 7.99967 14.6663C7.63148 14.6663 7.33301 14.3679 7.33301 13.9997V7.99967C7.33301 7.63148 7.63148 7.33301 7.99967 7.33301Z"
7575
fill="#2b3746"
7676
/>
7777
<path
78-
fill-rule="evenodd"
79-
clip-rule="evenodd"
78+
fillRule="evenodd"
79+
clipRule="evenodd"
8080
d="M7.99967 1.33301C8.36786 1.33301 8.66634 1.63148 8.66634 1.99967V5.33301C8.66634 5.7012 8.36786 5.99967 7.99967 5.99967C7.63148 5.99967 7.33301 5.7012 7.33301 5.33301V1.99967C7.33301 1.63148 7.63148 1.33301 7.99967 1.33301Z"
8181
fill="#2b3746"
8282
/>
8383
<path
84-
fill-rule="evenodd"
85-
clip-rule="evenodd"
84+
fillRule="evenodd"
85+
clipRule="evenodd"
8686
d="M13.3337 10C13.7018 10 14.0003 10.2985 14.0003 10.6667V14C14.0003 14.3682 13.7018 14.6667 13.3337 14.6667C12.9655 14.6667 12.667 14.3682 12.667 14V10.6667C12.667 10.2985 12.9655 10 13.3337 10Z"
8787
fill="#2b3746"
8888
/>
8989
<path
90-
fill-rule="evenodd"
91-
clip-rule="evenodd"
90+
fillRule="evenodd"
91+
clipRule="evenodd"
9292
d="M13.3337 1.33301C13.7018 1.33301 14.0003 1.63148 14.0003 1.99967V7.99967C14.0003 8.36786 13.7018 8.66634 13.3337 8.66634C12.9655 8.66634 12.667 8.36786 12.667 7.99967V1.99967C12.667 1.63148 12.9655 1.33301 13.3337 1.33301Z"
9393
fill="#2b3746"
9494
/>
9595
<path
96-
fill-rule="evenodd"
97-
clip-rule="evenodd"
96+
fillRule="evenodd"
97+
clipRule="evenodd"
9898
d="M0 9.33366C0 8.96547 0.298477 8.66699 0.666667 8.66699H4.66667C5.03486 8.66699 5.33333 8.96547 5.33333 9.33366C5.33333 9.70185 5.03486 10.0003 4.66667 10.0003H0.666667C0.298477 10.0003 0 9.70185 0 9.33366Z"
9999
fill="#2b3746"
100100
/>

client/src/contexts/hooks/useInvoiceSessions.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,6 @@ export const useInvoiceSessions = (invoiceId?: string) => {
1717
try {
1818
const response = await backend.get(`comments/invoice/sessions/${invoiceId}`);
1919
const data: Session[] = response.data ?? [];
20-
21-
// Sort sessions by datetime
22-
// const sortedSessions = data.slice().sort((a, b) => new Date(a.datetime).getTime() - new Date(b.datetime).getTime());
23-
24-
// Sort adjustment values within each session by order_index
25-
// const sessionsWithSortedAdjustments = sortedSessions.map(session => ({
26-
// ...session,
27-
// adjustmentValues: session.adjustmentValues
28-
// .slice()
29-
// .sort((a, b) => {
30-
// const aOrderIndex = a.order_index ?? 0;
31-
// const bOrderIndex = b.order_index ?? 0;
32-
// return aOrderIndex - bOrderIndex;
33-
// })
34-
// }));
3520

3621
setSessions(data);
3722
} catch (error) {

0 commit comments

Comments
 (0)