Skip to content

Commit

Permalink
chore: remove unnecessary comments from the codebase (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccadumazert committed Aug 19, 2024
1 parent e15bebb commit b7b98d3
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 25 deletions.
1 change: 0 additions & 1 deletion src/Datas.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import ButtonProCo from './assets/proConnect.svg';
import AgentConnect from "./assets/AgentConnect.svg";
import EnterEmail from "./assets/enterEmail.svg";
import Identity from "./assets/checkIdentity.svg";
Expand Down
18 changes: 1 addition & 17 deletions src/Pages/HomeLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import React from "react";
import welcome from "../assets/welcome.svg";
// import PrivateProfessional from './PrivateProfessional';
import "./layout.css";
import { fr } from "@codegouvfr/react-dsfr";
import Button from "@codegouvfr/react-dsfr/Button";
import whatService from "../assets/quelService.svg";
import HowDoesItWork from "../components/HowDoesItWork/HowDoesItWork";
import { tilesData } from "../Datas";

// type ComponentType = 'publicMember' | 'privateProfessional';

function HomeLayout() {
return (
<React.Fragment>
Expand All @@ -25,21 +22,12 @@ function HomeLayout() {
nous vous identifions <br />
sur les sites de l'administration.
</h1>
{/* <p>Vous êtes :</p> */}
<a className="fr-raw-link" href="/eligibilite">
<Button
// isSelected={selectedComponent === 'publicMember'}
>
<Button>
<i className={fr.cx("ri-user-star-line") + " fr-pr-2w"} />
Testez votre éligibilité
</Button>
</a>
{/* <ButtonRadius
onClick={() => handleButtonClick('privateProfessional')}
isSelected={selectedComponent === 'privateProfessional'}
>
Professionnel du privé
</ButtonRadius> */}
</div>
<div className="fr-col-6 fr-hidden fr-unhidden-md centered-content">
<img src={welcome} alt="" />
Expand Down Expand Up @@ -89,10 +77,6 @@ function HomeLayout() {
</div>
</div>
</div>
{/* <Element name="componentStart">
{selectedComponent === 'publicMember' && <AgentPublic />}
{selectedComponent === 'privateProfessional' && <PrivateProfessional />}
</Element> */}
</React.Fragment>
);
}
Expand Down
2 changes: 0 additions & 2 deletions src/Pages/Stats.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//

function Stats() {
return (
<div className="fr-container">
Expand Down
4 changes: 0 additions & 4 deletions src/components/Buttons/ButtonRadius.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@ import { PropsWithChildren } from "react";

interface MyComponentProps extends PropsWithChildren {
onClick: () => void;
// isSelected: boolean;
personalized?: string;
}

const ButtonRadius: React.FC<MyComponentProps> = ({
children,
onClick,
// isSelected,
personalized,
}) => {
return (
<DsfrButton
className={`${personalized}`}
onClick={onClick}
priority="primary"

// priority={isSelected ? 'primary' : 'secondary'}
>
{children}
</DsfrButton>
Expand Down
1 change: 0 additions & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Card as DsfrCard } from "@codegouvfr/react-dsfr/Card";
// import { Badge } from '@codegouvfr/react-dsfr/Badge';

interface Offre {
description?: string;
Expand Down

0 comments on commit b7b98d3

Please sign in to comment.