Spaces:
Sleeping
Sleeping
show state
Browse files
src/components/ui-controls.tsx
CHANGED
|
@@ -29,6 +29,10 @@ export const UIControls = () => {
|
|
| 29 |
rubiksCubeRef?.current?.reset();
|
| 30 |
};
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
const solve = () => {
|
| 33 |
alert('Working on it!');
|
| 34 |
};
|
|
@@ -89,9 +93,16 @@ export const UIControls = () => {
|
|
| 89 |
</div>
|
| 90 |
<div className="flex flex-col gap-2">
|
| 91 |
<div className="flex gap-2">
|
| 92 |
-
<
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
Solve
|
| 96 |
</Button>
|
| 97 |
</div>
|
|
|
|
| 29 |
rubiksCubeRef?.current?.reset();
|
| 30 |
};
|
| 31 |
|
| 32 |
+
const showState = () => {
|
| 33 |
+
alert('Working on it!');
|
| 34 |
+
};
|
| 35 |
+
|
| 36 |
const solve = () => {
|
| 37 |
alert('Working on it!');
|
| 38 |
};
|
|
|
|
| 93 |
</div>
|
| 94 |
<div className="flex flex-col gap-2">
|
| 95 |
<div className="flex gap-2">
|
| 96 |
+
<ButtonGroup size="sm">
|
| 97 |
+
<Button onPress={scramble}>Scramble</Button>
|
| 98 |
+
<Button onPress={reset}>Reset</Button>
|
| 99 |
+
</ButtonGroup>
|
| 100 |
+
|
| 101 |
+
<Button size="sm" variant="light" onPress={showState}>
|
| 102 |
+
Show State
|
| 103 |
+
</Button>
|
| 104 |
+
|
| 105 |
+
<Button size="sm" className="ms-auto" color="success" onPress={solve}>
|
| 106 |
Solve
|
| 107 |
</Button>
|
| 108 |
</div>
|