feat: move "منابع" to main sidebar and update related components
This commit is contained in:
@@ -9,7 +9,6 @@ import ResourceExceptionsPanel from '../components/resources/ResourceExceptionsP
|
||||
import ResourceServicesPanel from '../components/resources/ResourceServicesPanel';
|
||||
import ResourceSkillsPanel from '../components/resources/ResourceSkillsPanel';
|
||||
import ResourceCategoriesPanel from '../components/resources/ResourceCategoriesPanel';
|
||||
import SettingsLayout from '../components/layout/SettingsLayout';
|
||||
import { useUrlState } from '../hooks/useUrlState';
|
||||
import { usePermissions } from '../hooks/usePermissions';
|
||||
import { useAddresses } from '../hooks/useAddresses';
|
||||
@@ -61,16 +60,13 @@ export default function ResourceDetailPage() {
|
||||
// یک لحظه میپرد و دوباره برمیگردد.
|
||||
if (loading || !resource) {
|
||||
return (
|
||||
<SettingsLayout active="resources">
|
||||
<div style={{ padding: 24, color: 'var(--text-3)', fontSize: 13 }}>
|
||||
{loading ? 'در حال بارگذاری...' : 'منبع یافت نشد.'}
|
||||
</div>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<SettingsLayout active="resources">
|
||||
<div className="fade-in">
|
||||
<PageHeader
|
||||
title={resource.name}
|
||||
@@ -153,7 +149,6 @@ export default function ResourceDetailPage() {
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</SettingsLayout>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user