Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump widget 3.0.0 #396

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
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]rc.2",
"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