Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into greg/tool-2477-basic-7702-support-in-ts-sdk
Browse files Browse the repository at this point in the history
gregfromstl authored Jan 7, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents 0f3da1a + ddb6af1 commit 491b5e9
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 6 additions & 2 deletions apps/dashboard/next.config.ts
Original file line number Diff line number Diff line change
@@ -192,14 +192,18 @@ function getConfig(): NextConfig {
...baseNextConfig,
experimental: {
webpackBuildWorker: true,
webpackMemoryOptimizations: true,
},
// @ts-expect-error - this is a valid option
webpack: (config, { dev }) => {
if (config.cache && !dev) {
webpack: (config) => {
if (config.cache) {
config.cache = Object.freeze({
type: "filesystem",
maxMemoryGenerations: 0,
});
config.cache = Object.freeze({
type: "memory",
});
}
config.externals.push("pino-pretty");
config.module = {
Original file line number Diff line number Diff line change
@@ -32,14 +32,12 @@ export const AbiSelector: React.FC<AbiSelectorProps> = ({
options={options}
defaultValue={options.find((o) => o.value === defaultValue)}
chakraStyles={{
// @ts-expect-error - this works fine
container: (provided) => ({
...provided,
width: "full",
}),
}}
value={options.find((o) => o.value === value)}
// @ts-expect-error - this works fine
onChange={(selectedFn) => {
if (selectedFn) {
onChange((selectedFn as { label: string; value: string }).value);
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ export const MarkdownRenderer: React.FC<{

a: (props) => (
<Link
href={props.href}
href={props.href ?? "#"}
target="_blank"
{...cleanedProps(props)}
className="mt-4 text-link-foreground hover:text-foreground"
@@ -103,6 +103,7 @@ export const MarkdownRenderer: React.FC<{
if (code?.disableCodeHighlight) {
return (
<div className="my-4">
{/* @ts-expect-error - TODO: fix this */}
<PlainTextCodeBlock
{...cleanedProps(props)}
code={onlyText(props.children).trim()}
@@ -114,6 +115,7 @@ export const MarkdownRenderer: React.FC<{
return (
<div className="my-4">
<CodeClient
// @ts-expect-error - TODO: fix this
lang={language}
{...cleanedProps(props)}
code={onlyText(props.children).trim()}
Original file line number Diff line number Diff line change
@@ -191,7 +191,6 @@ export const ApplyForOpCreditsForm: React.FC<ApplyForOpCreditsFormProps> = ({
}))}
placeholder="Select industry"
isRequired
// @ts-expect-error - this works fine
onChange={(value) => {
if (value?.value) {
form.setValue("superchain_verticals", value.value);
@@ -222,14 +221,10 @@ export const ApplyForOpCreditsForm: React.FC<ApplyForOpCreditsFormProps> = ({
label: chain === "Optimism" ? "OP Mainnet" : chain,
value: chain,
}))}
// @ts-expect-error - this works fine
onChange={(values) => {
form.setValue(
"superchain_chain",
values
// @ts-expect-error - this works fine
.map(({ value }) => value)
.join(";"),
values.map(({ value }) => value).join(";"),
);
}}
isMulti

0 comments on commit 491b5e9

Please sign in to comment.