code optimization
This commit is contained in:
@@ -21,10 +21,16 @@ function ReferencePoint({ point }: { readonly point: Point }) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const pointName = point.pointType === 'Wall' ? 'Wall-Point' :
|
||||
point.pointType === 'Floor' ? 'Floor-Point' :
|
||||
point.pointType === 'Aisle' ? 'Aisle-Point' :
|
||||
point.pointType === 'Zone' ? 'Zone-Point' : 'Point';
|
||||
let pointName = 'Point';
|
||||
if (point.pointType === 'Wall') {
|
||||
pointName = 'Wall-Point';
|
||||
} else if (point.pointType === 'Floor') {
|
||||
pointName = 'Floor-Point';
|
||||
} else if (point.pointType === 'Aisle') {
|
||||
pointName = 'Aisle-Point';
|
||||
} else if (point.pointType === 'Zone') {
|
||||
pointName = 'Zone-Point';
|
||||
}
|
||||
|
||||
return (
|
||||
<mesh
|
||||
|
||||
Reference in New Issue
Block a user