zone properties updated
This commit is contained in:
@@ -30,6 +30,7 @@ const Vector3Input: React.FC<PositionInputProps> = ({
|
|||||||
type={type}
|
type={type}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="input-container">
|
<div className="input-container">
|
||||||
@@ -39,6 +40,7 @@ const Vector3Input: React.FC<PositionInputProps> = ({
|
|||||||
type={type}
|
type={type}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
disabled
|
||||||
min={0}
|
min={0}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,6 +51,7 @@ const Vector3Input: React.FC<PositionInputProps> = ({
|
|||||||
type={type}
|
type={type}
|
||||||
onChange={(e) => onChange(e.target.value)}
|
onChange={(e) => onChange(e.target.value)}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
disabled
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,15 +1,37 @@
|
|||||||
import React from "react";
|
import React, { useState } from "react";
|
||||||
import RenameInput from "../../../ui/inputs/RenameInput";
|
import RenameInput from "../../../ui/inputs/RenameInput";
|
||||||
import Vector3Input from "../customInput/Vector3Input";
|
import Vector3Input from "../customInput/Vector3Input";
|
||||||
|
|
||||||
const ZoneProperties = () => {
|
const ZoneProperties: React.FC = () => {
|
||||||
|
const [Edit, setEdit] = useState(false);
|
||||||
|
|
||||||
|
function handleSetView() {
|
||||||
|
setEdit(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleEditView() {
|
||||||
|
if (Edit) {
|
||||||
|
setEdit(false);
|
||||||
|
} else {
|
||||||
|
setEdit(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="zone-properties-container">
|
<div className="zone-properties-container">
|
||||||
<div className="header">
|
<div className="header">
|
||||||
<RenameInput value="Selected Zone Name" />
|
<RenameInput value="Selected Zone Name" />
|
||||||
|
<div className="button" onClick={handleEditView}>
|
||||||
|
{Edit ? "Cancel" : "Edit"}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Vector3Input onChange={()=>{}} header="Target"/>
|
<Vector3Input onChange={() => {}} header="Viewport Target" />
|
||||||
<Vector3Input onChange={()=>{}} header="Position"/>
|
<Vector3Input onChange={() => {}} header="Viewport Position" />
|
||||||
|
{Edit && (
|
||||||
|
<div className="button-save" onClick={handleSetView}>
|
||||||
|
Set View
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -733,6 +733,7 @@
|
|||||||
.asset-properties-container,
|
.asset-properties-container,
|
||||||
.zone-properties-container {
|
.zone-properties-container {
|
||||||
.header {
|
.header {
|
||||||
|
@include flex-space-between;
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
border-top: 1px solid var(--highlight-accent-color);
|
border-top: 1px solid var(--highlight-accent-color);
|
||||||
border-bottom: 1px solid var(--highlight-accent-color);
|
border-bottom: 1px solid var(--highlight-accent-color);
|
||||||
@@ -758,7 +759,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.optimize-button,
|
.optimize-button,
|
||||||
.generate-report-button {
|
.generate-report-button,
|
||||||
|
.button-save {
|
||||||
@include flex-center;
|
@include flex-center;
|
||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
|
|||||||
Reference in New Issue
Block a user