Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ dist
package-lock.json
.env
*.tgz

.claude
.vscode
5 changes: 2 additions & 3 deletions src/atoms/label/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { colors } from '../../ions/variables';
import { Icon } from '../..';

export interface LabelProps {
currency?: 'tkai' | 'vkai' | undefined;
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
value: string;
className?: string;
style?: React.CSSProperties;
Expand All @@ -16,8 +16,7 @@ const Label = (props: LabelProps) => {
return (
<Styles.LabelStyle className={className} style={style}>
{value}
{currency === 'tkai' && <Icon icon="tkai" fill={colors.grey200} />}
{currency === 'vkai' && <Icon icon="vkai" fill={colors.grey200} />}
{currency && <Icon icon={currency} fill={colors.grey200} />}
</Styles.LabelStyle>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/atoms/label/stories/label.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
currency: {
control: {
type: 'select',
options: ['', 'tkai', 'vkai'],
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
},
},
},
Expand All @@ -20,7 +20,7 @@ export const LabelComponentKAI = (args: LabelProps) => {

LabelComponentKAI.storyName = 'With Currency';
LabelComponentKAI.args = {
currency: 'tkai',
currency: 'lx',
value: 'Amount',
};

Expand Down
14 changes: 8 additions & 6 deletions src/ions/icons.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/molecules/card-value/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as Styles from './styles';

export interface CardValueProps {
label: string;
currency?: 'tkai' | 'vkai' | undefined;
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
value: string | number;
description?: string;
buttonValue?: string;
Expand Down
6 changes: 3 additions & 3 deletions src/molecules/card-value/stories/card-value.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
currency: {
control: {
type: 'select',
options: ['', 'tkai', 'vkai'],
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
},
},
},
Expand All @@ -18,10 +18,10 @@ export const CardValueComponentKAI = (args: CardValueProps) => (
<CardValue {...args} />
);

CardValueComponentKAI.storyName = 'With TKAI';
CardValueComponentKAI.storyName = 'With LX';
CardValueComponentKAI.args = {
label: 'Amount',
currency: 'tkai',
currency: 'lx',
value: '13000',
showArrowButton: false,
};
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/form-group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Label } from '../..';
import * as Styles from './styles';

export interface FormGroupProps {
currency?: 'tkai' | 'vkai' | undefined;
currency?: 'lx' | 'vote' | 'tkai' | 'vkai' | undefined;
label: string;
error?: boolean;
children: React.ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions src/molecules/form-group/stories/form-group.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
currency: {
control: {
type: 'select',
options: ['', 'tkai', 'vkai'],
options: ['', 'lx', 'vote', 'tkai', 'vkai'],
},
},
},
Expand All @@ -32,6 +32,6 @@ export const FormGroupComponent = (args: FormGroupProps) => {
FormGroupComponent.storyName = 'Form Group';
FormGroupComponent.args = {
label: 'Awesome Label',
currency: '',
currency: 'lx',
error: false,
};
4 changes: 4 additions & 0 deletions src/molecules/table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ const Table = <CellData extends CellBaseType>(props: TableProps<CellData>) => {
<Icon icon="tkai" fill="hsl(0, 0%, 16%)" />
) : className === 'vkai' ? (
<Icon icon="vkai" fill="hsl(0, 0%, 16%)" />
) : className === 'lx' ? (
<Icon icon="lx" fill="hsl(0, 0%, 16%)" />
) : className === 'vote' ? (
<Icon icon="vote" fill="hsl(0, 0%, 16%)" />
) : null}
</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion src/molecules/table/stories/table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const columns = {
id: 'amount',
value: 'Amount',
dataKey: 'amount',
className: 'vkai',
className: 'lx',
dataTestId: 'header-amount-id',
},
{
Expand Down
8 changes: 6 additions & 2 deletions src/molecules/table/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export const Table = styled.table<TableProps>`
}

&.vkai,
&.tkai {
&.tkai,
&.lx,
&.vote {
text-align: right;

> div {
Expand Down Expand Up @@ -253,7 +255,9 @@ export const Table = styled.table<TableProps>`
}

&.tkai,
&.vkai {
&.vkai,
&.lx,
&.vote {
svg {
float: right;
margin-left: ${rem('5px')};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const menu = [
url: '#0',
},
{
icon: 'tkai',
icon: 'lx',
label: 'Transactions',
url: '#0',
},
Expand Down