-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: better-auth migration * feat: fix better auth migration * feat: update authentification and fix chapters generation
- Loading branch information
Showing
90 changed files
with
4,812 additions
and
2,789 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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
import { Trans } from "react-i18next"; | ||
|
||
export const TransUserRole = ({ | ||
role, | ||
}: { | ||
role: "Student" | "Teacher" | "Admin"; | ||
}) => | ||
role == "Student" ? ( | ||
<Trans i18nKey="profile.role.student" /> | ||
) : role == "Teacher" ? ( | ||
export const TransUserRole = ({ role }: { role?: string }) => | ||
role === "admin" ? ( | ||
<Trans i18nKey="profile.role.admin" /> | ||
) : role === "teacher" ? ( | ||
<Trans i18nKey="profile.role.teacher" /> | ||
) : ( | ||
<Trans i18nKey="profile.role.admin" /> | ||
<Trans i18nKey="profile.role.student" /> | ||
); |
Oops, something went wrong.