Makes campaigns load all types of docs and then link to the docs

This commit is contained in:
2025-08-03 12:50:52 -07:00
parent 3310be9e9b
commit 2fbc2c853f
13 changed files with 170 additions and 75 deletions

View File

@@ -9,7 +9,7 @@ import {
import { Fragment, useCallback, useState } from "react";
type Props<T extends AnyDocument> = {
title: React.ReactNode;
title?: React.ReactNode;
error?: React.ReactNode;
items: T[];
renderRow: (item: T) => React.ReactNode;
@@ -49,7 +49,7 @@ export function DocumentList<T extends AnyDocument>({
return (
<section className="w-full">
<div className="flex items-center justify-between">
<h2 className="text-xl font-bold text-slate-100">{title}</h2>
{title && <h2 className="text-xl font-bold text-slate-100">{title}</h2>}
<div className="flex gap-2">
{isEditing && (
<button