test
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user