React Treeviews Test

This commit is contained in:
2026-07-30 18:46:02 +02:00
parent 037afe6f72
commit c6ea67b404
10 changed files with 944 additions and 51 deletions
@@ -0,0 +1,22 @@
import React from 'react';
import { useState } from 'react'
import PropertySideBar from '../components/PropertySideBar';
import UseFetch from '../components/tools/UseFetch';
const PropertyPage = () => {
const { data: properties, isLoading, error } = UseFetch(`http://localhost:8088/propertygroup/1`)
const [update, setUpdate] = useState(false)
if (isLoading) return <p>Loading profile...</p>
if (error) return <p>Error: {error}</p>
return (
<div className="content">
<div><PropertySideBar properties={properties} setUpdate={setUpdate} /></div>
<div className="main"></div>
</div>
);
};
export default PropertyPage;