From d4df4a9bc131456eb105dc282bf6c71773c57a4c Mon Sep 17 00:00:00 2001 From: wlren Date: Mon, 10 Oct 2022 01:30:27 +0800 Subject: [PATCH] [questions][chore] add sample data --- apps/portal/src/utils/questions/constants.ts | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/apps/portal/src/utils/questions/constants.ts b/apps/portal/src/utils/questions/constants.ts index 19851aa3..be07e72c 100644 --- a/apps/portal/src/utils/questions/constants.ts +++ b/apps/portal/src/utils/questions/constants.ts @@ -71,6 +71,7 @@ export const LOCATIONS: FilterChoices = [ export const SAMPLE_QUESTION = { answerCount: 10, + commentCount: 10, company: 'Google', content: 'Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums andiven an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and an integer target, return indices of the two numbers such that they add up. Given an array of integers nums and', @@ -80,3 +81,28 @@ export const SAMPLE_QUESTION = { timestamp: 'Last month', upvoteCount: 5, }; + +export const SAMPLE_ANSWER = { + authorImageUrl: 'https://avatars.githubusercontent.com/u/66356390?v=4', + authorName: 'Jeff Sieu', + commentCount: 10, + content: 'This is a sample answer', + createdAt: new Date(), + upvoteCount: 10, +}; + +export const SAMPLE_QUESTION_COMMENT = { + authorImageUrl: 'https://avatars.githubusercontent.com/u/66356390?v=4', + authorName: 'Jeff Sieu', + content: 'This is a sample question comment', + createdAt: new Date(), + upvoteCount: 10, +}; + +export const SAMPLE_ANSWER_COMMENT = { + authorImageUrl: 'https://avatars.githubusercontent.com/u/66356390?v=4', + authorName: 'Jeff Sieu', + content: 'This is an sample answer comment', + createdAt: new Date(), + upvoteCount: 10, +};