Property Group Label Translation und erste TreeView fertig
This commit is contained in:
@@ -4,7 +4,7 @@ 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 { data: properties, isLoading, error } = UseFetch(`http://localhost:8088/propertygroup/1/lang/1`)
|
||||
|
||||
if (isLoading) return <p>Loading profile...</p>
|
||||
if (error) return <p>Error: {error}</p>
|
||||
@@ -12,7 +12,7 @@ const PropertyPage = () => {
|
||||
return (
|
||||
<div className="content">
|
||||
<div><PropertySideBar properties={[properties]} /></div>
|
||||
<div className="main">{JSON.stringify(properties)}</div>
|
||||
<div className="main"></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user