Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const eslintConfig = defineConfig([
"out/**",
"build/**",
"next-env.d.ts",
// Compiled SDK output
"packages/sdk/dist/**",
]),
]);

Expand Down
2 changes: 1 addition & 1 deletion src/app/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function CreateStorylinePage() {
const [content, setContent] = useState("");
const hasDeadline = true; // mandatory 7-day deadline for all storylines

const { state, error, receipt, execute, reset } = usePublish();
const { state, error, receipt, execute } = usePublish();
const { pendingIntent, saveIntent, persistTxHash, clearIntent, attemptRetry } =
usePublishIntent();
const { valid, charCount } = validateContentLength(content);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ClaimRoyalties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function ClaimRoyalties({ tokenAddress, plotCount, beneficiary }: ClaimRo
setError(err instanceof Error ? err.message : "Claim failed");
setTxState("error");
}
}, [tokenAddress, unclaimed, writeContractAsync, refetch]);
}, [unclaimed, writeContractAsync, refetch]);

const reset = useCallback(() => {
setTxState("idle");
Expand Down
9 changes: 5 additions & 4 deletions src/components/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import { useState, useRef, useEffect, useCallback } from "react";
import { useState, useRef, useEffect, useCallback, useMemo } from "react";

export interface SelectOption {
value: string;
Expand Down Expand Up @@ -29,9 +29,10 @@ export function Select({
const containerRef = useRef<HTMLDivElement>(null);
const listRef = useRef<HTMLUListElement>(null);

const allOptions = placeholder
? [{ value: "", label: placeholder }, ...options]
: options;
const allOptions = useMemo(
() => (placeholder ? [{ value: "", label: placeholder }, ...options] : options),
[placeholder, options],
);

const selectedLabel =
options.find((o) => o.value === value)?.label ?? placeholder;
Expand Down
Loading