Makes campaigns load all types of docs and then link to the docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user