From 6892c63b899b46fedc9d99b8274a17e9043fe361 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 12 Jan 2021 12:38:46 -0500 Subject: [TMA-527/506/523] Custom Moment Categories (#174) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * changed logic to allow ≥ 1 categories * now using array of strings for moment categories * updated error strings * formatting and check for picker cancellation * initial UI done * cleaned up logic, added custom icon * renamed onboarding stack to match main stack * removed unused import * deterministic color picker * custom category defaults to selected instead of added * removed function in route --- src/constants/constants.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/constants') diff --git a/src/constants/constants.ts b/src/constants/constants.ts index 531420e6..8d8b7dfe 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -1,5 +1,5 @@ import {ReactText} from 'react'; -import {BackgroundGradientType, MomentCategoryType} from './../types/'; +import {BackgroundGradientType} from './../types/'; import {SCREEN_WIDTH, SCREEN_HEIGHT} from '../utils'; export const CHIN_HEIGHT = 34; @@ -103,7 +103,7 @@ export const BROWSABLE_SOCIAL_URLS: Record = { Twitter: 'https://twitter.com/', }; -export const MOMENT_CATEGORIES: Array = [ +export const MOMENT_CATEGORIES: string[] = [ 'Friends', 'Adventure', 'Photo Dump', @@ -140,3 +140,21 @@ export const CLASS_YEAR_LIST: Array = [ '2025', '2026', ]; + +export const MOMENT_CATEGORY_BG_COLORS: string[] = [ + '#5E4AE4', + '#5044A6', + '#4755A1', + '#444BA8', + '#374898', + '#3F5C97', + '#3A649F', + '#386A95', + '#366D84', + '#335E76', + '#2E5471', + '#274765', + '#225363', + '#365F6A', + '#4E7175', +]; -- cgit v1.2.3-70-g09d2