-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Create teams table in controlpanel * Test new email * Legg til opprett team knapp * Fikse lint error --------- Co-authored-by: mauricew <[email protected]>
- Loading branch information
1 parent
46db0d0
commit 3221ce3
Showing
3 changed files
with
137 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import CreateTable from "../CreateTable"; | ||
|
||
const Team = (): JSX.Element => { | ||
const navigate = useNavigate(); | ||
interface Team { | ||
name: string; | ||
email: string; | ||
opptak: string; | ||
} | ||
|
||
const example1: Team[] = [ | ||
{ | ||
name: "IT", | ||
email: "[email protected]", | ||
opptak: "Åpent", | ||
}, | ||
{ | ||
name: "Evaluering", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Rekruttering", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Proffilering", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Skolekoordinering", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Sponsor", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Styret", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
{ | ||
name: "Økonomi", | ||
email: "[email protected]", | ||
opptak: "Stengt", | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className="w-full"> | ||
<div className="pt-10 mt-50 shadow grid-rows-2 grid-cols-2 flex flex-col items-center"> | ||
<h1 className="text-2xl row-start-1 row-end-1">Team</h1> | ||
<CreateTable header={["Navn", "Epost", "Opptak"]} content={example1} /> | ||
<button | ||
type="button" | ||
className="login-buttons mt-6 text-black px-4 py-2 rounded-full duration-300 mb-4 bg-white hover:bg-slate-300" | ||
onClick={() => navigate(`/kontrollpanel/opprett-team`)} | ||
> | ||
+ Opprett Team | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Team; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters