Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 30, 2024
1 parent 0c48b3e commit 3c2e730
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/_shared-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: ./ui-package/package-lock.json

# build UI package
- name: Build UI package
Expand Down
2 changes: 1 addition & 1 deletion ui-package/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function exportComponents(uiPackages: IComponentExports) {
);
}

function buildComponentLoader<TCfg>(loader: (wagmiConfig: TCfg) => React.ReactNode): (container: HTMLElement, cfg: TCfg) => IComponentControls {
function buildComponentLoader<TCfg>(loader: (cfg: TCfg) => React.ReactNode) {
return (container: HTMLElement, cfg: TCfg) => {
const root = ReactDOM.createRoot(container);
root.render(
Expand Down
16 changes: 0 additions & 16 deletions ui-package/utils/CliArgs.js

This file was deleted.

1 change: 0 additions & 1 deletion ui-package/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const wpmerge = require('webpack-merge');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const TerserPlugin = require("terser-webpack-plugin");
const Visualizer = require('webpack-visualizer-plugin2');
var cliArgs = require('./utils/CliArgs');
var pkgJson = require('./package.json');

var debug = !!process.env.DEBUG;
Expand Down

0 comments on commit 3c2e730

Please sign in to comment.