From 2b8728267e2a54d9ed83f7b7c9eb9d9c97744818 Mon Sep 17 00:00:00 2001 From: vanshita-tilwani Date: Sat, 18 May 2024 19:11:35 -0400 Subject: [PATCH 1/2] updating density options button text based on props --- src/components/timeline/timeline-popover-elements.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/timeline/timeline-popover-elements.tsx b/src/components/timeline/timeline-popover-elements.tsx index 385fb0d79..d2ef0b334 100644 --- a/src/components/timeline/timeline-popover-elements.tsx +++ b/src/components/timeline/timeline-popover-elements.tsx @@ -128,7 +128,7 @@ const QuickJump: FunctionComponent = ({ description: item.description, id: item.id, label: item.title, - onSelect: () => {}, + onSelect: () => { }, title: item.title || `Item ${index + 1}`, }))} theme={theme} @@ -151,18 +151,18 @@ const ChangeDensity: FunctionComponent = ({ const items = useMemo( () => [ { - description: 'Show less text', + description: buttonTexts.changeDensityOptions.low.helpText, id: 'LOW', onSelect: () => onChange('LOW'), selected: selectedDensity === 'LOW', - title: 'Low', + title: buttonTexts.changeDensityOptions.low.text, }, { - description: 'Show more text', + description: buttonTexts.changeDensityOptions.high.helpText, id: 'HIGH', onSelect: () => onChange('HIGH'), selected: selectedDensity === 'HIGH', - title: 'High', + title: buttonTexts.changeDensityOptions.high.text, }, ], [selectedDensity], From b430dca6ede48c628f60869f7d80e01d64247bad Mon Sep 17 00:00:00 2001 From: vanshita-tilwani Date: Sat, 18 May 2024 19:20:47 -0400 Subject: [PATCH 2/2] updating contributor --- .all-contributorsrc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 2d4851892..79bbae15f 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -76,6 +76,15 @@ "contributions": [ "code" ] + }, + { + "login": "vanshita-tilwani", + "name": "Vanshita Tilwani", + "avatar_url": "https://avatars.githubusercontent.com/u/15342805?v=4", + "profile": "https://github.com/vanshita-tilwani", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, @@ -85,4 +94,4 @@ "repoHost": "https://github.com", "skipCi": true, "commitConvention": "angular" -} +} \ No newline at end of file