fix: restore original Feather icons across UI

- Add components/Icons.js with SVG paths extracted verbatim from the original index.html (14 unique icons)
- Restore icons on navbar menu, sidebar, feed actions, post/reply, modals, admin tabs and settings
- Replaces emoji placeholders from the initial migration
This commit is contained in:
lezi-fun committed 2026-08-09 18:12:46 +08:00
1 parent 3e9d004fb6
commit 70a198ae32
14 files changed
+160 -35

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
import { useState } from 'react';
import { API } from '@/lib/api';
import { useApp } from './AppProvider';
import { Icon } from './Icons';
export default function SettingsPage() {
const { currentUser, setCurrentUser } = useApp();
@@ -26,7 +27,7 @@ export default function SettingsPage() {
return (
<div className="page-slide active">
<div className="page-header" style={{ maxWidth: 400, margin: '0 auto', width: '100%' }}>
<h2>设置</h2>
<h2><Icon name="settings" size={20} /> 设置</h2>
</div>
<div style={{ maxWidth: 400, margin: '0 auto', width: '100%' }}>
<label style={{ fontWeight: 600, fontSize: 14 }}>用户名</label>