Skip to content

Commit e1e7771

Browse files
committed
refactor: update imports to use absolute paths and simplify color fallback logic
1 parent 1421a6e commit e1e7771

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/SectionTitle/TitleSection.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BIG_BREAKPOINT, LARGE_BREAKPOINT } from "../../constants/BreakPoints";
2-
import { Color } from "../../styles/colors";
1+
import { BIG_BREAKPOINT, LARGE_BREAKPOINT } from "@constants/BreakPoints";
2+
import { Color } from "@styles/colors";
33
import { FC } from "react";
44
import { styled } from "styled-components";
55

@@ -33,7 +33,7 @@ const StyledTitleContainer = styled.div`
3333
`;
3434

3535
const StyledTitle = styled.h1`
36-
color: ${(props) => (props.color ? props.color : Color.WHITE)};
36+
color: ${(props) => props.color ?? Color.WHITE};
3737
font-family: "Square 721 Regular", sans-serif;
3838
padding-bottom: 1.5rem;
3939
text-align: center;
@@ -45,7 +45,7 @@ const StyledTitle = styled.h1`
4545
`;
4646

4747
const StyledSubTitle = styled.p`
48-
color: ${(props) => (props.color ? props.color : Color.WHITE)};
48+
color: ${(props) => props.color ?? Color.WHITE};
4949
@media (min-width: 480px) {
5050
width: 70%;
5151
}

0 commit comments

Comments
 (0)