Skip to content

Commit e1b68ce

Browse files
authored
Merge pull request #43 from OCA-UFCG/chore/claim_warnings
Chore/claim warnings
2 parents f309d5b + f3c62a8 commit e1b68ce

9 files changed

Lines changed: 91 additions & 75 deletions

File tree

package-lock.json

Lines changed: 63 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"express": "^4.19.2",
3030
"lightgallery": "^2.7.2",
3131
"maplibre-gl": "^4.2.0",
32-
"next": "14.2.2",
32+
"next": "^14.2.26",
3333
"nodemailer": "^6.9.14",
3434
"powerbi-client": "^2.23.1",
3535
"powerbi-client-react": "^2.0.0",

src/app/globalStyles.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ export const ContentContainer = styled.div`
236236
justify-content: space-between;
237237
`;
238238

239-
export const Main = styled.main<{ backThumb: string }>`
239+
export const Main = styled.main<{ $backThumb: string }>`
240240
display: flex;
241241
flex-flow: column;
242242
align-items: center;
@@ -247,16 +247,16 @@ export const Main = styled.main<{ backThumb: string }>`
247247
transition: 0.3s;
248248
`;
249249

250-
export const Section = styled.section<{ full?: string }>`
250+
export const Section = styled.section<{ $full?: string }>`
251251
padding: 1rem 1rem;
252252
display: flex;
253253
align-items: center;
254254
flex-direction: column;
255255
gap: 1.5rem;
256256
box-sizing: border-box;
257257
width: 100%;
258-
max-width: ${({ full }) =>
259-
full !== "false" ? "100%" : "var(--main-section-width)"};
258+
max-width: ${({ $full }) =>
259+
$full !== "false" ? "100%" : "var(--main-section-width)"};
260260
`;
261261

262262
export const SectionTitle = styled.h2<{

src/components/MenuModal/MenuModal.styles.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import styled from "styled-components";
22
import Image from "next/image";
33
import { Icon } from "../Icon/Icon";
44

5-
export const RetractIcon = styled(Icon)<{ position: "left" | "right" }>`
6-
${({ position }) => position === "right" && "transform: rotate(180deg)"};
5+
export const RetractIcon = styled(Icon)<{ $position: "left" | "right" }>`
6+
${({ $position }) => $position === "right" && "transform: rotate(180deg)"};
77
cursor: pointer;
88
transition: 300ms;
99
@@ -25,9 +25,9 @@ export const MenuImage = styled(Icon)`
2525
}
2626
`;
2727

28-
export const Background = styled.div<{ retracted: string }>`
29-
display: ${({ retracted }) => (retracted === "true" ? "none" : "flex")};
30-
animation: ${(props) => (props.retracted === "true" ? "fadeOut" : "fadeIn")}
28+
export const Background = styled.div<{ $retracted: string }>`
29+
display: ${({ $retracted }) => ($retracted === "true" ? "none" : "flex")};
30+
animation: ${(props) => (props.$retracted === "true" ? "fadeOut" : "fadeIn")}
3131
0.5s ease-in-out;
3232
width: 100vw;
3333
height: 100svh;
@@ -58,7 +58,10 @@ export const Background = styled.div<{ retracted: string }>`
5858
}
5959
`;
6060

61-
export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
61+
export const ModalWrapper = styled.div<{
62+
$retracted: string;
63+
$position: string;
64+
}>`
6265
position: fixed;
6366
top: 50%;
6467
bottom: 50%;
@@ -81,8 +84,8 @@ export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
8184
}
8285
8386
${(props) => {
84-
const { position, retracted } = props;
85-
const isLeft = position === "left";
87+
const { $position, $retracted } = props;
88+
const isLeft = $position === "left";
8689
8790
const transformExpanded = isLeft
8891
? "translateX(0.5rem)"
@@ -93,7 +96,7 @@ export const ModalWrapper = styled.div<{ retracted: string; position: string }>`
9396
9497
return `
9598
${isLeft ? "left: 0;" : "right: 0;"}
96-
transform: ${retracted === "true" ? transformRetracted : transformExpanded};
99+
transform: ${$retracted === "true" ? transformRetracted : transformExpanded};
97100
`;
98101
}}
99102
`;
@@ -108,7 +111,7 @@ export const OcaImage = styled(Image)`
108111
height: fit-content;
109112
`;
110113

111-
export const RetractImage = styled(Image)<{ position: string }>`
114+
export const RetractImage = styled(Image)<{ $position: string }>`
112115
max-width: 1.25rem;
113116
height: fit-content;
114117
transition: 0.2s;
@@ -120,7 +123,7 @@ export const RetractImage = styled(Image)<{ position: string }>`
120123
}
121124
122125
${(props) =>
123-
props.position === "right" &&
126+
props.$position === "right" &&
124127
`
125128
transform: rotate(180deg);
126129

src/components/MenuModal/MenuModal.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ const MenuModal = ({
3838
{hasBackground && (
3939
<Background
4040
onClick={updateRetracted}
41-
retracted={retracted.toString()}
41+
$retracted={retracted.toString()}
4242
/>
4343
)}
4444
<ModalWrapper
45-
retracted={retracted.toString()}
45+
$retracted={retracted.toString()}
4646
ref={modalRef}
47-
position={position}
47+
$position={position}
4848
>
4949
<HeadWrapper>
5050
<LogoContainer>
5151
<Logo src="/logo.png" alt="datane logo" width={45} height={45} />
5252
</LogoContainer>
5353

5454
<div onClick={updateRetracted}>
55-
<RetractIcon id="retract" size={20} position={position} />
55+
<RetractIcon id="retract" size={20} $position={position} />
5656
</div>
5757
</HeadWrapper>
5858
<ContentWrapper>{children}</ContentWrapper>

src/components/PanelCard/Section/PanelSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const PanelSection = ({
3636
.filter((item) => item.fields.macroPainel === true);
3737

3838
return (
39-
<Wrapper full={"false"} id={title}>
39+
<Wrapper $full={"false"} id={title}>
4040
<Header>
4141
<Title>{title}</Title>
4242
<Subtitle>{subtitle}</Subtitle>

0 commit comments

Comments
 (0)