Skip to content

Commit

Permalink
fixing map
Browse files Browse the repository at this point in the history
  • Loading branch information
aryabansal1 committed Jan 20, 2025
1 parent df44301 commit b059792
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
36 changes: 19 additions & 17 deletions client/src/Home/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@ import {
Paper,
} from '@mui/material';

const CloseIcon: React.FC = () => (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<line x1="18" y1="6" x2="6" y2="18" />
<line x1="6" y1="6" x2="18" y2="18" />
</svg>
);
function CloseIcon() {
return (
<svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<line x1="18" y1="6" x2="6" y2="18" />
<line x1="6" y1="6" x2="18" y2="18" />
</svg>
);
}

interface StateCategory {
color: string;
Expand Down Expand Up @@ -119,7 +121,7 @@ const stateChapters: StateChapters = {
},
};

const LandingPage: React.FC = () => {
function LandingPage() {
const [selectedState, setSelectedState] = useState<StateData | null>(null);
const [hoveredChapter, setHoveredChapter] = useState<Chapter | null>(null);

Expand Down Expand Up @@ -289,6 +291,6 @@ const LandingPage: React.FC = () => {
</Dialog>
</Box>
);
};
}

export default LandingPage;
3 changes: 3 additions & 0 deletions client/src/Landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export default function Landing() {
}}
>
<button
type="button"
style={{
backgroundColor: '#ec4899',
color: 'white',
Expand Down Expand Up @@ -394,6 +395,7 @@ export default function Landing() {
}}
>
<button
type="button"
onClick={() => setShowModal(false)}
style={{
position: 'absolute',
Expand Down Expand Up @@ -474,6 +476,7 @@ export default function Landing() {
>
{chapter.accepting ? (
<button
type="button"
style={{
backgroundColor: '#ec4899',
color: 'white',
Expand Down

0 comments on commit b059792

Please sign in to comment.