This commit is contained in:
2026-07-30 20:02:41 +02:00
parent c6ea67b404
commit 7ee2cf6c13
9 changed files with 99 additions and 42 deletions
@@ -5,15 +5,14 @@ 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><PropertySideBar properties={[properties]} /></div>
<div className="main">{JSON.stringify(properties)}</div>
</div>
);
};