Skip to content

Commit 8b6f045

Browse files
committed
wip
1 parent e10a85b commit 8b6f045

File tree

1 file changed

+3
-68
lines changed

1 file changed

+3
-68
lines changed

extensions/autometrics/src/Panels/AutometricsPanel.tsx

Lines changed: 3 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { Button } from '@ohif/ui-next';
3-
import Talas from './Talas';
3+
import Talas from './View/Talas';
4+
import Main from './View/Main';
45

56
const AutometricsPanel = ({ commandsManager, servicesManager }) => {
67
const [currentView, setCurrentView] = useState('autometrics'); // 'autometrics' or 'talas'
@@ -50,73 +51,7 @@ const AutometricsPanel = ({ commandsManager, servicesManager }) => {
5051

5152
// Default Autometrics view
5253
return (
53-
<div className="flex flex-col space-y-6 p-4">
54-
<div className="mb-4 text-lg font-semibold text-white">Autometrics</div>
55-
56-
{/* Angular Measurements Group */}
57-
<div className="space-y-3">
58-
<div className="border-b border-gray-600 pb-1 text-sm font-medium text-gray-300">
59-
Angular Measurements
60-
</div>
61-
<div className="flex flex-col space-y-2 pl-2">
62-
<Button
63-
variant="default"
64-
className="w-full justify-start text-sm"
65-
onClick={() => handleButtonClick('M1M2')}
66-
>
67-
M1M2
68-
</Button>
69-
70-
<Button
71-
variant="default"
72-
className="w-full justify-start text-sm"
73-
onClick={() => handleButtonClick('TMT-DOR')}
74-
>
75-
TMT-DOR
76-
</Button>
77-
78-
<Button
79-
variant="default"
80-
className="w-full justify-start text-sm"
81-
onClick={() => handleButtonClick('TMT-LAT')}
82-
>
83-
TMT-LAT
84-
</Button>
85-
86-
<Button
87-
variant="default"
88-
className="w-full justify-start text-sm"
89-
onClick={() => handleButtonClick('CP')}
90-
>
91-
CP
92-
</Button>
93-
94-
<Button
95-
variant="default"
96-
className="w-full justify-start text-sm"
97-
onClick={() => handleButtonClick('HA')}
98-
>
99-
HA
100-
</Button>
101-
</div>
102-
</div>
103-
104-
{/* Foot Ankle Offset Group */}
105-
<div className="space-y-3">
106-
<div className="border-b border-gray-600 pb-1 text-sm font-medium text-gray-300">
107-
Foot Ankle Offset
108-
</div>
109-
<div className="flex flex-col space-y-2 pl-2">
110-
<Button
111-
variant="default"
112-
className="w-full justify-start text-sm"
113-
onClick={() => handleButtonClick('TALAS')}
114-
>
115-
TALAS
116-
</Button>
117-
</div>
118-
</div>
119-
</div>
54+
<Main handleButtonClick={handleButtonClick} />
12055
);
12156
};
12257

0 commit comments

Comments
 (0)