Adds tabs to the campaign page, but they don't do much yet
This commit is contained in:
@@ -39,6 +39,7 @@ export type TabProps = {
|
||||
label: string;
|
||||
to: string;
|
||||
params: Record<string, any>;
|
||||
search: Record<string, any>;
|
||||
active?: boolean;
|
||||
};
|
||||
|
||||
@@ -46,12 +47,13 @@ const activeTabClass =
|
||||
"text-slate-100 font-bold bg-slate-800 border-t border-b border-l";
|
||||
const inactiveTabClass = "text-slate-300 bg-slate-900 border";
|
||||
|
||||
export function Tab({ label, to, params, active }: TabProps) {
|
||||
export function Tab({ label, to, params, active, search }: TabProps) {
|
||||
return (
|
||||
<Link
|
||||
key={label}
|
||||
to={to}
|
||||
params={params}
|
||||
search={search}
|
||||
className={`block p-2 border-slate-700 whitespace-nowrap ${active ? activeTabClass : inactiveTabClass}`}
|
||||
>
|
||||
{label}
|
||||
|
||||
Reference in New Issue
Block a user