Skip to content

Commit 09b2a07

Browse files
committed
chore
1 parent a471bde commit 09b2a07

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

components/shelves/owner-shelf-item-card.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ export function OwnerShelfItemCard({
131131
</div>
132132
) : item.note ? (
133133
<div className="rounded-xl border border-(--border)/70 bg-(--surface) p-4">
134-
<p className="text-xs font-medium uppercase tracking-wide text-(--muted)">
135-
Shelf note
136-
</p>
137134
<p className="mt-2 whitespace-pre-line text-sm leading-6 text-(--muted)">
138135
{item.note}
139136
</p>

components/shelves/shelf-detail.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function ShelfDetail({ shelf, mode, returnTo }: ShelfDetailProps) {
105105
</Card>
106106
) : (
107107
<div className="space-y-4">
108-
{shelf.items.map((item) => (
108+
{shelf.items.map((item) =>
109109
mode === "owner" ? (
110110
<OwnerShelfItemCard
111111
key={`${item.id}:${item.note ?? ""}`}
@@ -169,9 +169,6 @@ export function ShelfDetail({ shelf, mode, returnTo }: ShelfDetailProps) {
169169

170170
{item.note ? (
171171
<div className="rounded-xl border border-(--border)/70 bg-(--surface) p-4">
172-
<p className="text-xs font-medium uppercase tracking-wide text-(--muted)">
173-
Shelf note
174-
</p>
175172
<p className="mt-2 whitespace-pre-line text-sm leading-6 text-(--muted)">
176173
{item.note}
177174
</p>
@@ -181,8 +178,8 @@ export function ShelfDetail({ shelf, mode, returnTo }: ShelfDetailProps) {
181178
</div>
182179
</CardContent>
183180
</Card>
184-
)
185-
))}
181+
),
182+
)}
186183
</div>
187184
)}
188185
</section>

components/ui/flash-toast.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ function buildToastItems(message: string | null, error: string | null) {
4343
export function FlashToast({
4444
message = null,
4545
error = null,
46-
durationMs = 4200,
46+
durationMs = 2000,
4747
}: FlashToastProps) {
4848
const router = useRouter();
4949
const pathname = usePathname();
5050
const searchParams = useSearchParams();
51-
const items = useMemo(() => buildToastItems(message, error), [message, error]);
51+
const items = useMemo(
52+
() => buildToastItems(message, error),
53+
[message, error],
54+
);
5255
const [visibleIds, setVisibleIds] = useState(() =>
5356
items.map((item) => item.id),
5457
);

0 commit comments

Comments
 (0)