All files / src/components/Settings TeamsSection.tsx

0% Statements 0/9
100% Branches 0/0
0% Functions 0/2
0% Lines 0/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                                                   
import React from "react";
import SettingsTitle from "./SettingsTitle.tsx";
import CustomButton from "../common/CustomButton/index.tsx";
import { useNavigate } from "react-router-dom";
import { OpenInNewRounded } from "@mui/icons-material";
 
function TeamsSection() {
  const navigate = useNavigate();
  const handleNavigateToTeamSection = () => {
    navigate("/settings/invite-team");
  };
 
  return (
    <section className="border-b pb-4 mb-4">
      <SettingsTitle title="Team" />
      <div className="mt-2">
        <CustomButton onClick={handleNavigateToTeamSection}>
          <OpenInNewRounded /> Manage Team
        </CustomButton>
      </div>
    </section>
  );
}
 
export default TeamsSection;