From 2a2ee30f6336998262d6f61d9aacf063882eff31 Mon Sep 17 00:00:00 2001 From: Shaun Hamilton Date: Sat, 26 Jun 2021 13:59:12 +0100 Subject: [PATCH] update prop-types --- client/src/redux/prop-types.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/client/src/redux/prop-types.ts b/client/src/redux/prop-types.ts index 3bf4cc7b1b..b0f9e6c199 100644 --- a/client/src/redux/prop-types.ts +++ b/client/src/redux/prop-types.ts @@ -230,21 +230,27 @@ export type TestType = { export type UserType = { about: string; + acceptedPrivacyTerms: boolean; completedChallenges: CompletedChallenge[]; + currentChallengeId: string; email: string; + emailVerified: boolean; githubProfile: string; + isBanned: boolean; + isCheater: boolean; isHonest: boolean; linkedin: string; location: string; name: string; picture: string; points: number; - portfolio: PortfolioType; + portfolio: PortfolioType[]; profileUI: { isLocked: boolean; showCerts: boolean; showName: boolean; }; + progressTimestamps: Array; sendQuincyEmail: boolean; theme: string; twitter: string; @@ -273,13 +279,13 @@ export type isCertifiedTypes = { export type CompletedChallenge = { id: string; - solution: string; - githubLink: string; - challengeType: number; + solution?: string | null; + githubLink?: string; + challengeType?: number; completedDate: number; challengeFiles: ChallengeFileType[]; }; -// TODO: renames: files => challengeFiles; key => fileKey; +// TODO: renames: files => challengeFiles; key => fileKey; #42489 export type ChallengeFileType = { contents: string; editableContents?: string;