Refactor Notifications into Asks, replace all <Link> by <a>

This commit is contained in:
pikiou
2022-03-29 06:31:03 +02:00
parent 70b53c5af8
commit 4273ea1603
25 changed files with 636 additions and 663 deletions

View File

@@ -33,7 +33,7 @@ export class Volunteer {
teamWishesComment = ""
hiddenNotifs: number[] = []
hiddenAsks: number[] = []
created = new Date()
@@ -64,7 +64,7 @@ export const translationVolunteer: { [k in keyof Volunteer]: string } = {
food: "alimentation",
teamWishes: "enviesEquipe",
teamWishesComment: "commentaireEnviesEquipe",
hiddenNotifs: "notifsCachees",
hiddenAsks: "questionsCachees",
created: "creation",
password1: "passe1",
password2: "passe2",
@@ -92,7 +92,7 @@ export const volunteerExample: Volunteer = {
food: "Végétarien",
teamWishes: [],
teamWishesComment: "",
hiddenNotifs: [],
hiddenAsks: [],
created: new Date(0),
password1: "$2y$10$fSxY9AIuxSiEjwF.J3eXGubIxUPkdq9d5fqpbl8ASimSjNj4SR.9O",
password2: "$2y$10$fSxY9AIuxSiEjwF.J3eXGubIxUPkdq9d5fqpbl8ASimSjNj4SR.9O",
@@ -116,12 +116,12 @@ export interface VolunteerForgot {
message: string
}
export interface VolunteerNotifs {
export interface VolunteerAsks {
id: Volunteer["id"]
firstname: Volunteer["firstname"]
adult: Volunteer["adult"]
active: Volunteer["active"]
hiddenNotifs: Volunteer["hiddenNotifs"]
hiddenAsks: Volunteer["hiddenAsks"]
pushNotifSubscription: Volunteer["pushNotifSubscription"]
acceptsNotifs: Volunteer["acceptsNotifs"]
}