Remove unused [Beta] tab from Settings page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cf29d70908
commit
33c2ce5cf4
2 changed files with 1 additions and 47 deletions
|
|
@ -838,7 +838,6 @@ const App: React.FC = () => {
|
|||
onRemoveSubChannel={handleRemoveSubChannel}
|
||||
onAddProofType={handleAddProofType}
|
||||
onRemoveProofType={handleRemoveProofType}
|
||||
onNavigate={handleNavigate}
|
||||
/>;
|
||||
case 'Home':
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -6,8 +6,6 @@ import { TrashIcon } from './icons/TrashIcon';
|
|||
import { UserIcon } from './icons/UserIcon';
|
||||
import { PlusIcon } from './icons/PlusIcon';
|
||||
import { ChevronDownIcon } from './icons/ChevronDownIcon';
|
||||
import { ClipboardIcon } from './icons/ClipboardIcon';
|
||||
import { CopyGenAIIcon } from './icons/CopyGenAIIcon';
|
||||
|
||||
interface ManagementCardProps {
|
||||
title: string;
|
||||
|
|
@ -280,10 +278,9 @@ interface SettingsProps {
|
|||
onRemoveSubChannel: (channel: string, value: string) => void;
|
||||
onAddProofType: (channel: string, subChannel: string, value: string) => void;
|
||||
onRemoveProofType: (channel: string, subChannel: string, value: string) => void;
|
||||
onNavigate: (view: string) => void;
|
||||
}
|
||||
|
||||
type Tab = 'Campaigns' | 'Channels' | 'SubChannels' | 'ProofTypes' | 'Users' | 'Beta';
|
||||
type Tab = 'Campaigns' | 'Channels' | 'SubChannels' | 'ProofTypes' | 'Users';
|
||||
|
||||
export const Settings: React.FC<SettingsProps> = ({
|
||||
options,
|
||||
|
|
@ -295,7 +292,6 @@ export const Settings: React.FC<SettingsProps> = ({
|
|||
onRemoveSubChannel,
|
||||
onAddProofType,
|
||||
onRemoveProofType,
|
||||
onNavigate,
|
||||
}) => {
|
||||
const [activeTab, setActiveTab] = useState<Tab>('Channels');
|
||||
const [selectedChannel, setSelectedChannel] = useState<string>('');
|
||||
|
|
@ -339,7 +335,6 @@ export const Settings: React.FC<SettingsProps> = ({
|
|||
{ id: 'SubChannels', label: 'Sub-channels' },
|
||||
{ id: 'ProofTypes', label: 'Proof types' },
|
||||
// { id: 'Users', label: 'Users' }, // Hidden: not connected to backend user system
|
||||
{ id: 'Beta', label: '[Beta]' },
|
||||
].map((tab) => (
|
||||
<button
|
||||
key={tab.id}
|
||||
|
|
@ -474,46 +469,6 @@ export const Settings: React.FC<SettingsProps> = ({
|
|||
)}
|
||||
*/}
|
||||
|
||||
{activeTab === 'Beta' && (
|
||||
<div className="max-w-3xl space-y-6">
|
||||
<div className="bg-white rounded-[10px] shadow-md p-6 border border-grey-300">
|
||||
<h2 className="text-xl font-semibold text-primary-blue mb-2 flex items-center gap-2">
|
||||
<span className="relative flex h-3 w-3">
|
||||
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-electric-violet opacity-75"></span>
|
||||
<span className="relative inline-flex rounded-full h-3 w-3 bg-electric-violet"></span>
|
||||
</span>
|
||||
Beta Features
|
||||
</h2>
|
||||
<p className="text-black-title mb-6">
|
||||
Explore experimental features currently in development. These tools are functional but may change over time.
|
||||
</p>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<button
|
||||
onClick={() => onNavigate('WIP Reviewer')}
|
||||
className="flex flex-col items-start p-4 rounded-[10px] border border-grey-300 hover:border-active-blue hover:bg-info-light transition-all duration-300 group text-left"
|
||||
>
|
||||
<div className="p-2 rounded-[10px] bg-info-light text-active-blue mb-3 group-hover:scale-110 transition-transform">
|
||||
<ClipboardIcon className="h-6 w-6" />
|
||||
</div>
|
||||
<h3 className="font-bold text-primary-blue mb-1">WIP Reviewer</h3>
|
||||
<p className="text-sm text-grey-900">Early-stage feedback on proofs before they are finalized.</p>
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => onNavigate('CopyGenAI')}
|
||||
className="flex flex-col items-start p-4 rounded-[10px] border border-grey-300 hover:border-electric-violet hover:bg-info-light transition-all duration-300 group text-left"
|
||||
>
|
||||
<div className="p-2 rounded-[10px] bg-electric-violet/10 text-electric-violet mb-3 group-hover:scale-110 transition-transform">
|
||||
<CopyGenAIIcon className="h-6 w-6" />
|
||||
</div>
|
||||
<h3 className="font-bold text-primary-blue mb-1">CopyGenAI</h3>
|
||||
<p className="text-sm text-grey-900">Generate and refine marketing copy with AI assistance.</p>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue