Skip to content

Commit

Permalink
fix: name in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed Jan 4, 2024
1 parent a4549b1 commit 0092ba3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 51 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Je donne mon avis
# Carte jeune engagé

![CI Workflow](https://github.com/DISIC/jedonnemonavis.numerique.gouv.fr/actions/workflows/ci.yml/badge.svg)

Expand Down
46 changes: 0 additions & 46 deletions webapp/src/components/Navbar.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions webapp/src/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Container } from "@chakra-ui/react";
import Head from "next/head";
import { usePathname } from "next/navigation";
import { ReactNode } from "react";
import Navbar from "~/components/Navbar";

export default function DefaultLayout({ children }: { children: ReactNode }) {
const pathname = usePathname();
Expand All @@ -13,7 +12,6 @@ export default function DefaultLayout({ children }: { children: ReactNode }) {
<title>Carte Jeune Engagé</title>
<meta name="description" content="Carte Jeune Engagé" />
</Head>
{!pathname.startsWith("/admin") && <Navbar />}
<main role="main">
{pathname.startsWith("/admin") ? (
children
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/providers/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState, createContext, useContext, useEffect } from "react";
import { User } from "~/payload/payload-types";

type AuthContext = {
user?: User | null;
user: User | null;
setUser: (user: User | null) => void;
};

Expand All @@ -12,7 +12,7 @@ const Context = createContext({} as AuthContext);
export const AuthProvider: React.FC<{ children: React.ReactNode }> = ({
children,
}) => {
const [user, setUser] = useState<User | null>();
const [user, setUser] = useState<User | null>(null);

useEffect(() => {
const fetchMe = async () => {
Expand Down

0 comments on commit 0092ba3

Please sign in to comment.