Skip to content

Commit

Permalink
removed rollup node resolve, other types chores
Browse files Browse the repository at this point in the history
  • Loading branch information
poocart committed Mar 17, 2023
1 parent 6d2ccdc commit ff72277
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 123 deletions.
12 changes: 7 additions & 5 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@etherspot/transaction-kit": "^0.0.13",
"@etherspot/transaction-kit": "^0.0.23",
"@mui/lab": "^5.0.0-alpha.118",
"@mui/material": "^5.11.7",
"@types/node": "^16.18.11",
Expand Down
4 changes: 3 additions & 1 deletion example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
useEtherspotUi,
IEstimatedBatches,
ISmartWalletAddress,
EstimatedBatch, ISentBatches, SentBatch,
EstimatedBatch,
ISentBatches,
SentBatch,
} from '@etherspot/transaction-kit';
import { ethers } from 'ethers';
import { Box, Button, Chip, Container, Paper, Tab, Tabs, Typography } from '@mui/material';
Expand Down
110 changes: 2 additions & 108 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@etherspot/transaction-kit",
"description": "React Etherspot Transaction Kit",
"version": "0.0.22",
"version": "0.0.23",
"main": "dist/cjs/index.js",
"scripts": {
"rollup:build": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c",
Expand Down Expand Up @@ -43,7 +43,6 @@
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@jest/globals": "^29.3.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-typescript": "^8.3.3",
"@testing-library/react": "^13.4.0",
Expand Down
4 changes: 0 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import typescript from '@rollup/plugin-typescript';
import dts from 'rollup-plugin-dts';
import dotenv from 'dotenv';
import replace from '@rollup/plugin-replace';
import resolve from '@rollup/plugin-node-resolve';

dotenv.config();

Expand All @@ -28,9 +27,6 @@ export default [
tsconfig: './tsconfig.json',
exclude: ['./example/**', './src/test/**']
}),
resolve({
browser: true,
}),
replace({
__ETHERSPOT_PROJECT_KEY__: process.env.ETHERSPOT_PROJECT_KEY ?? '',
preventAssignment: true,
Expand Down
10 changes: 8 additions & 2 deletions src/components/EtherspotTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ interface EtherspotTransactionProps extends ITransaction {
children?: React.ReactNode;
}

const EtherspotTransaction = ({ children, to, data, value, id: transactionId }: EtherspotTransactionProps) => {
const EtherspotTransaction = ({
children,
to,
data,
value,
id: transactionId,
}: EtherspotTransactionProps): JSX.Element => {
const context = useContext(EtherspotBatchContext);
const componentId = useId();

Expand Down Expand Up @@ -42,7 +48,7 @@ const EtherspotTransaction = ({ children, to, data, value, id: transactionId }:
}
}, [componentId, to, data, value, transactionId]);

return children;
return <>{children}</>;
};

export default EtherspotTransaction;

0 comments on commit ff72277

Please sign in to comment.