Skip to content

Commit 7d69b3d

Browse files
committed
fix: update tab icons to be up to material ui standards
1 parent ec72306 commit 7d69b3d

11 files changed

Lines changed: 16 additions & 21 deletions

File tree

app/component-library/components-temp/Tabs/TabsIconBar/TabsIconBar.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('TabsIconBar', () => {
3333
{
3434
key: 'tab3',
3535
label: 'Predictions',
36-
iconName: IconName.Predict,
36+
iconName: IconName.Predictions,
3737
content: null,
3838
},
3939
];

app/component-library/components-temp/Tabs/TabsIconList/TabsIconList.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ describe('TabsIconList', () => {
277277
</View>
278278
<View
279279
key="t3"
280-
{...(tabViewProps('Predictions', IconName.Predict) as object)}
280+
{...(tabViewProps('Predictions', IconName.Predictions) as object)}
281281
>
282282
<Text>Content 3</Text>
283283
</View>
@@ -505,7 +505,7 @@ describe('TabsIconList', () => {
505505
{
506506
key: 'pred-tab',
507507
label: 'Predictions',
508-
icon: IconName.Predict,
508+
icon: IconName.Predictions,
509509
content: 'Predictions Content',
510510
},
511511
];

app/component-library/components-temp/Tabs/TabsIconTab/TabsIconTab.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe('TabsIconTab', () => {
110110
const icons: IconName[] = [
111111
IconName.Portfolio,
112112
IconName.Candlestick,
113-
IconName.Predict,
113+
IconName.Predictions,
114114
];
115115
icons.forEach((icon) => {
116116
expect(() =>

app/component-library/components/Icons/Icon/Icon.assets.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ import giftSVG from './assets/gift.svg';
123123
import globalsearchSVG from './assets/global-search.svg';
124124
import globalSVG from './assets/global.svg';
125125
import graphSVG from './assets/graph.svg';
126+
import groupSVG from './assets/group.svg';
126127
import hardwareSVG from './assets/hardware.svg';
127128
import hashtagSVG from './assets/hash-tag.svg';
128129
import heartfilledSVG from './assets/heart-filled.svg';
@@ -177,8 +178,8 @@ import peopleSVG from './assets/people.svg';
177178
import personcancelSVG from './assets/person-cancel.svg';
178179
import pinSVG from './assets/pin.svg';
179180
import plantSVG from './assets/plant.svg';
180-
import portfolioSVG from './assets/portfolio.svg';
181-
import predictSVG from './assets/predict.svg';
181+
import pieChartSVG from './assets/pie-chart.svg';
182+
import predictionsSVG from './assets/predictions.svg';
182183
import plugSVG from './assets/plug.svg';
183184
import plusandminusSVG from './assets/plus-and-minus.svg';
184185
import policyalertSVG from './assets/policy-alert.svg';
@@ -409,6 +410,7 @@ export const assetByIconName: AssetByIconName = {
409410
[IconName.GlobalSearch]: globalsearchSVG,
410411
[IconName.Global]: globalSVG,
411412
[IconName.Graph]: graphSVG,
413+
[IconName.Group]: groupSVG,
412414
[IconName.Hardware]: hardwareSVG,
413415
[IconName.HashTag]: hashtagSVG,
414416
[IconName.HeartFilled]: heartfilledSVG,
@@ -463,8 +465,8 @@ export const assetByIconName: AssetByIconName = {
463465
[IconName.PersonCancel]: personcancelSVG,
464466
[IconName.Pin]: pinSVG,
465467
[IconName.Plant]: plantSVG,
466-
[IconName.Portfolio]: portfolioSVG,
467-
[IconName.Predict]: predictSVG,
468+
[IconName.Portfolio]: pieChartSVG,
469+
[IconName.Predictions]: predictionsSVG,
468470
[IconName.Plug]: plugSVG,
469471
[IconName.PlusAndMinus]: plusandminusSVG,
470472
[IconName.PolicyAlert]: policyalertSVG,

app/component-library/components/Icons/Icon/Icon.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export enum IconName {
193193
GlobalSearch = 'GlobalSearch',
194194
Global = 'Global',
195195
Graph = 'Graph',
196+
Group = 'Group',
196197
Hardware = 'Hardware',
197198
HashTag = 'HashTag',
198199
HeartFilled = 'HeartFilled',
@@ -248,7 +249,7 @@ export enum IconName {
248249
Pin = 'Pin',
249250
Plant = 'Plant',
250251
Portfolio = 'Portfolio',
251-
Predict = 'Predict',
252+
Predictions = 'Predictions',
252253
Plug = 'Plug',
253254
PlusAndMinus = 'PlusAndMinus',
254255
PolicyAlert = 'PolicyAlert',
Lines changed: 1 addition & 4 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

app/component-library/components/Icons/Icon/assets/portfolio.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/component-library/components/Icons/Icon/assets/predict.svg

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)