posts list and filter working

This commit is contained in:
Abhijit Bhatnagar 2025-08-18 01:04:04 +05:30
parent 1fa23c846e
commit 24008c2a49
16 changed files with 2146 additions and 18 deletions

View file

@ -2,6 +2,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client';
import Dashboard from './pages/Dashboard/Dashboard';
import Settings from './pages/Settings/Settings';
import Posts from './pages/Posts/Posts';
// Main App component for the dashboard page
export default function App() {
@ -10,12 +11,7 @@ export default function App() {
// Posts page component
function PostsApp() {
return (
<div className="helix-page">
<h1>Posts Management</h1>
<p>Posts management interface will be implemented here.</p>
</div>
);
return <Posts />;
}
// Users page component
@ -46,9 +42,18 @@ document.addEventListener( 'DOMContentLoaded', function () {
// Posts page
const postsRoot = document.getElementById( 'helix-posts-root' );
// eslint-disable-next-line no-console
console.log( 'Posts root element:', postsRoot );
if ( postsRoot ) {
// eslint-disable-next-line no-console
console.log( 'Creating Posts app root' );
const root = createRoot( postsRoot );
root.render( <PostsApp /> );
// eslint-disable-next-line no-console
console.log( 'Posts app rendered' );
} else {
// eslint-disable-next-line no-console
console.log( 'Posts root element not found' );
}
// Users page