Remove hardcoded "Explore More" section from public campaigns page
The section bypassed navigation settings and feature flags, linking directly to Map, Shifts, and Gallery with its own visibility logic. Bunker Admin
This commit is contained in:
parent
c8640ca4c7
commit
bdb672c7ad
@ -36,8 +36,6 @@ import {
|
||||
EditOutlined,
|
||||
EnvironmentOutlined,
|
||||
BankOutlined,
|
||||
ScheduleOutlined,
|
||||
PlayCircleOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import axios from 'axios';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
@ -529,40 +527,6 @@ export default function CampaignsListPage() {
|
||||
</Row>
|
||||
)}
|
||||
|
||||
{/* Explore More Section */}
|
||||
{(() => {
|
||||
const links = [
|
||||
{ to: '/map', icon: <EnvironmentOutlined />, label: 'Interactive Map', desc: 'Explore locations on the map', show: siteSettings?.enableMap !== false },
|
||||
{ to: '/shifts', icon: <ScheduleOutlined />, label: 'Volunteer Shifts', desc: 'Sign up for upcoming events', show: siteSettings?.enableMap !== false },
|
||||
{ to: '/gallery', icon: <PlayCircleOutlined />, label: 'Media Gallery', desc: 'Watch videos and media', show: siteSettings?.enableMediaFeatures !== false },
|
||||
].filter(l => l.show);
|
||||
if (links.length === 0) return null;
|
||||
return (
|
||||
<div style={{ marginTop: 48, textAlign: 'center' }}>
|
||||
<Divider style={{ borderColor: 'rgba(255,255,255,0.08)' }}>
|
||||
<Text style={{ color: 'rgba(255,255,255,0.45)', fontSize: 13 }}>Explore More</Text>
|
||||
</Divider>
|
||||
<Row gutter={[16, 16]} justify="center" style={{ marginTop: 16 }}>
|
||||
{links.map(link => (
|
||||
<Col xs={24} sm={8} key={link.to}>
|
||||
<Link to={link.to} style={{ textDecoration: 'none' }}>
|
||||
<Card
|
||||
hoverable
|
||||
size="small"
|
||||
style={{ background: colorBgContainer, border: '1px solid rgba(255,255,255,0.08)', textAlign: 'center' }}
|
||||
>
|
||||
<div style={{ fontSize: 24, marginBottom: 8, color: colorPrimary }}>{link.icon}</div>
|
||||
<Text strong style={{ display: 'block' }}>{link.label}</Text>
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>{link.desc}</Text>
|
||||
</Card>
|
||||
</Link>
|
||||
</Col>
|
||||
))}
|
||||
</Row>
|
||||
</div>
|
||||
);
|
||||
})()}
|
||||
|
||||
<AuthModal
|
||||
open={authModalOpen}
|
||||
onCancel={() => setAuthModalOpen(false)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user