Skip to content

Commit 340d1e7

Browse files
authored
Merge pull request #30 from make-software/bugfix/added-util-functions
2 parents 9e50053 + 8a0d81d commit 340d1e7

19 files changed

Lines changed: 2087 additions & 1803 deletions

dist/cspr-design.es.js

Lines changed: 1775 additions & 1593 deletions
Large diffs are not rendered by default.

dist/cspr-design.umd.js

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lib/index.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,16 @@ export * from './utils/named-key-prefix';
8686
export * from './utils/detect-browser';
8787
export * from './utils/formatters';
8888
export * from './utils/input-interaction-type';
89+
export * from './utils/account';
90+
export * from './utils/deploy-action-helpers';
91+
export * from './utils/named-key';
92+
export * from './utils/guards';
8993
export * from './utils/currency';
9094
export * from './utils/md5';
9195
export * from './theme-config';
92-
export * from './types';
96+
export * from './types/types';
97+
export * from './types/NFTToken';
98+
export * from './types/FTToken';
99+
export * from './types/CLType';
93100
export * from './icons-index';
94101
//# sourceMappingURL=index.d.ts.map

dist/lib/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/activity-feed-item/activity-feed-item-stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Meta, StoryFn } from '@storybook/react';
3-
import { MapDeploy } from '../deploy-actions/utils/deploy-action-helpers';
3+
44
import {
55
associatedKeysDeploy,
66
auctionDeploy,
@@ -18,6 +18,7 @@ import { ActivityFeedItem } from './activity-feed-item';
1818
import FlexColumn from '../flex-column/flex-column';
1919
import FlexRow from '../flex-row/flex-row';
2020
import BodyText from '../body-text/body-text';
21+
import {MapDeploy} from "../../utils/deploy-action-helpers";
2122

2223
export default {
2324
renderComponent: (args) => ActivityFeedItem,

src/lib/components/activity-feed-item/activity-feed-item.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,5 @@ export const ActivityFeedItem = ({
440440

441441
return <StyledPageTile>{responsiveFeedItem}</StyledPageTile>;
442442
};
443+
444+
export default ActivityFeedItem;

src/lib/components/deploy-actions/components/DeployActionAssociatedKeys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react';
22
import { useDeployActionDataContext } from '../services/deploy-action-context';
33
import { deriveAccountInfo } from '../../../utils/account';
4-
import { deriveUpdatedAssociatedKey } from '../utils/deploy-action-helpers';
54
import { DataResponse, Deploy, GetDeployResult } from '../../../types/types';
65
import { deriveSplitDataFromNamedKeyValue } from '../../../utils/named-key';
76
import FlexRow from '../../flex-row/flex-row';
87
import BodyText from '../../body-text/body-text';
98
import { ContractIdentifier } from '../../contract-identifier/contract-identifier';
109
import { HashFontSize } from '../../../utils/formatters';
1110
import Address from '../../address/address';
11+
import {deriveUpdatedAssociatedKey} from "../../../utils/deploy-action-helpers";
1212

1313
interface DeployAssociatedKeysActionProps {
1414
deploy: Deploy;

src/lib/components/deploy-actions/components/DeployActionAuction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { deriveAccountInfo } from '../../../utils/account.tsx';
44
import { useMatchMedia } from '../../../utils/match-media';
55
import DeployFiatAmount from './DeployFiatAmount';
66
import { useDeployActionDataContext } from '../services/deploy-action-context';
7-
import AuctionContractIcon from '../../../assets/icons/ic-auction-contract.svg';
7+
import {AuctionContractIcon} from '../../../icons-index';
88
import FlexRow from '../../flex-row/flex-row';
99
import Avatar from '../../avatar/avatar';
1010
import BodyText from '../../body-text/body-text';

src/lib/components/deploy-actions/components/TransferActionRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import BodyText from '../../body-text/body-text';
1414
import Address from '../../address/address';
1515
import { TableDataNamedKey } from '../../table-data-named-key/table-data-named-key';
1616
import Link from '../../link/link';
17-
import AuctionContractIcon from '../../../assets/icons/ic-auction-contract.svg';
17+
import {AuctionContractIcon} from '../../../icons-index';
1818

1919
interface TransferActionAccountProps {
2020
publicKey?: string | null;

src/lib/components/deploy-actions/deploy-action-row.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
GetDeployResult,
2626
} from '../../types/types';
2727
import { Transaction } from 'casper-js-sdk';
28-
import { getWasmProxyArgumentsFromRawData } from './utils/deploy-action-helpers';
28+
import {getWasmProxyArgumentsFromRawData} from "../../utils/deploy-action-helpers";
2929

3030
export type ActionIdentificationHashesType = {
3131
auction_manager_contract_hash?: string;
@@ -211,3 +211,5 @@ export const DeployActionRow = (props: DeployActionRowProps) => {
211211
</DeployActionDataProvider>
212212
);
213213
};
214+
215+
export default DeployActionRow;

0 commit comments

Comments
 (0)