Skip to content

Commit b8b4631

Browse files
vhcsilvaVitor Hugoickas
authored
[TKAI-4356] use lx instead of tkai on frontend (#137)
* feat: add lx and vote icon and currencies * refactor: increase path size * Update .gitignore * refactor: change transaction to icon to match lx * refactor: update transferReceiced icon * feat: update transferReceived, jury and backer icons --------- Co-authored-by: Vitor Hugo <vhcsilva@gmail.com> Co-authored-by: ickas <hey@ickas.xyz>
1 parent d38de6f commit b8b4631

12 files changed

Lines changed: 32 additions & 23 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ dist
66
package-lock.json
77
.env
88
*.tgz
9-
9+
.claude
1010
.vscode

src/atoms/label/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { colors } from '../../ions/variables';
55
import { Icon } from '../..';
66

77
export interface LabelProps {
8-
currency?: 'tkai' | 'vkai' | undefined;
8+
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
99
value: string;
1010
className?: string;
1111
style?: React.CSSProperties;
@@ -16,8 +16,7 @@ const Label = (props: LabelProps) => {
1616
return (
1717
<Styles.LabelStyle className={className} style={style}>
1818
{value}
19-
{currency === 'tkai' && <Icon icon="tkai" fill={colors.grey200} />}
20-
{currency === 'vkai' && <Icon icon="vkai" fill={colors.grey200} />}
19+
{currency && <Icon icon={currency} fill={colors.grey200} />}
2120
</Styles.LabelStyle>
2221
);
2322
};

src/atoms/label/stories/label.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
currency: {
99
control: {
1010
type: 'select',
11-
options: ['', 'tkai', 'vkai'],
11+
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
1212
},
1313
},
1414
},
@@ -20,7 +20,7 @@ export const LabelComponentKAI = (args: LabelProps) => {
2020

2121
LabelComponentKAI.storyName = 'With Currency';
2222
LabelComponentKAI.args = {
23-
currency: 'tkai',
23+
currency: 'lx',
2424
value: 'Amount',
2525
};
2626

src/ions/icons.ts

Lines changed: 8 additions & 6 deletions
Large diffs are not rendered by default.

src/molecules/card-value/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as Styles from './styles';
44

55
export interface CardValueProps {
66
label: string;
7-
currency?: 'tkai' | 'vkai' | undefined;
7+
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
88
value: string | number;
99
description?: string;
1010
buttonValue?: string;

src/molecules/card-value/stories/card-value.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
currency: {
99
control: {
1010
type: 'select',
11-
options: ['', 'tkai', 'vkai'],
11+
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
1212
},
1313
},
1414
},
@@ -18,10 +18,10 @@ export const CardValueComponentKAI = (args: CardValueProps) => (
1818
<CardValue {...args} />
1919
);
2020

21-
CardValueComponentKAI.storyName = 'With TKAI';
21+
CardValueComponentKAI.storyName = 'With LX';
2222
CardValueComponentKAI.args = {
2323
label: 'Amount',
24-
currency: 'tkai',
24+
currency: 'lx',
2525
value: '13000',
2626
showArrowButton: false,
2727
};

src/molecules/form-group/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Label } from '../..';
33
import * as Styles from './styles';
44

55
export interface FormGroupProps {
6-
currency?: 'tkai' | 'vkai' | undefined;
6+
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
77
label: string;
88
error?: boolean;
99
children: React.ReactNode;

src/molecules/form-group/stories/form-group.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
currency: {
1616
control: {
1717
type: 'select',
18-
options: ['', 'tkai', 'vkai'],
18+
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
1919
},
2020
},
2121
},
@@ -32,6 +32,6 @@ export const FormGroupComponent = (args: FormGroupProps) => {
3232
FormGroupComponent.storyName = 'Form Group';
3333
FormGroupComponent.args = {
3434
label: 'Awesome Label',
35-
currency: '',
35+
currency: 'lx',
3636
error: false,
3737
};

src/molecules/table/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ const Table = <CellData extends CellBaseType>(props: TableProps<CellData>) => {
168168
<Icon icon="tkai" fill="hsl(0, 0%, 16%)" />
169169
) : className === 'vkai' ? (
170170
<Icon icon="vkai" fill="hsl(0, 0%, 16%)" />
171+
) : className === 'lx' ? (
172+
<Icon icon="lx" fill="hsl(0, 0%, 16%)" />
173+
) : className === 'vote' ? (
174+
<Icon icon="vote" fill="hsl(0, 0%, 16%)" />
171175
) : null}
172176
</div>
173177
</td>

src/molecules/table/stories/table.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const columns = {
7575
id: 'amount',
7676
value: 'Amount',
7777
dataKey: 'amount',
78-
className: 'vkai',
78+
className: 'lx',
7979
dataTestId: 'header-amount-id',
8080
},
8181
{

0 commit comments

Comments
 (0)