Skip to content

Commit

Permalink
Merge pull request #396 from skip-mev/release-widget-3.0.0
Browse files Browse the repository at this point in the history
chore: bump widget 3.0.0
  • Loading branch information
codingki authored Nov 6, 2024
2 parents 806cdb3 + 9835857 commit a98bfe6
Show file tree
Hide file tree
Showing 8 changed files with 2,106 additions and 1,661 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const eslintConfig = {
},
],
"@typescript-eslint/no-explicit-any": ["warn"],
"@typescript-eslint/no-unused-vars": ["warn"],
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion chain-registry
Submodule chain-registry updated 175 files
3,748 changes: 2,096 additions & 1,652 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"viem": "^2.16.4",
"wagmi": "^2.5.7",
"widgetv1": "npm:@skip-go/widget@^2.5.2",
"widgetv2": "npm:@skip-go/[email protected]-alpha.28",
"widgetv2": "npm:@skip-go/[email protected]",
"zod": "^3.22.4",
"zustand": "^4.5.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/LogoGo.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import styles from "./LogoGo.module.css";

export const LogoGo = ({
color = "black"
color = "black",
}: {
color?: string
color?: string;
} = {}) => (
<svg
className={styles.gologo}
Expand Down
6 changes: 3 additions & 3 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const geoBlockMiddleware = (request: NextRequest) => {

return NextResponse.next();
}
}
};

const corsMiddleware = async (request: NextRequest, response: NextResponse) => {
// Check the origin from the request
Expand Down Expand Up @@ -144,15 +144,15 @@ const corsMiddleware = async (request: NextRequest, response: NextResponse) => {
});

return response;
}
};

export async function middleware(request: NextRequest) {
let response = NextResponse.next();

geoBlockMiddleware(request);
response = await corsMiddleware(request, response);
// response = abTestMiddleware(request, response);

return response;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Home() {
<Widget
theme={theme === "dark" ? defaultTheme : lightTheme}
endpointOptions={endpointOptions}
apiURL={apiURL}
apiUrl={apiURL}
defaultRoute={defaultRoute}
/>
</div>
Expand Down

0 comments on commit a98bfe6

Please sign in to comment.