Skip to content

Commit

Permalink
Merge pull request #10 from nuuxcode/frontend
Browse files Browse the repository at this point in the history
update button logout
  • Loading branch information
ElGaharbiAyoub authored Dec 2, 2023
2 parents 03ac98a + 1d68d85 commit 3c3c77a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/components/logoutButton.component.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button } from "@chakra-ui/react";
import { Center } from "@chakra-ui/react";
import React from "react";
import axios from "../apis/axios";
import { useNavigate } from "react-router-dom";
Expand Down Expand Up @@ -27,9 +27,13 @@ function LogoutButton({ children }: { children: React.ReactNode }) {
};

return (
<Button width={"full"} onClick={handleLogout}>
<Center
className="bg-gray-100 font-medium text-base rounded-lg py-2 hover:bg-gray-300 cursor-pointer"
width={"full"}
onClick={handleLogout}
>
{children}
</Button>
</Center>
);
}

Expand Down

0 comments on commit 3c3c77a

Please sign in to comment.