From b4170816053e6a2f15abd21f476769577180588e Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Fri, 12 Jul 2024 18:38:20 +0530 Subject: [PATCH] more cleanup --- src/Components/CameraFeed/FeedControls.tsx | 116 +++++++-------------- 1 file changed, 38 insertions(+), 78 deletions(-) diff --git a/src/Components/CameraFeed/FeedControls.tsx b/src/Components/CameraFeed/FeedControls.tsx index b63510d3a20..92ee155b7ea 100644 --- a/src/Components/CameraFeed/FeedControls.tsx +++ b/src/Components/CameraFeed/FeedControls.tsx @@ -76,13 +76,11 @@ export default function FeedControls({ shortcutsDisabled, ...props }: Props) { const inlineControls = useBreakpoints({ default: false, md: true }); const controls = { - position: { - topLeft: ( + position: ( + <> - ), - top: ( - ), - topRight: ( - ), - left: ( - ), - right: ( + + {precision}x + - ), - bottomLeft: ( - ), - bottom: ( - ), - bottomRight: ( - ), - }, - precision: ( - - {precision}x - + ), - zoomIn: ( - - - - ), - zoomOut: ( - - - + zoom: ( + <> + + + + + + + ), reset: ( @@ -209,22 +193,11 @@ export default function FeedControls({ shortcutsDisabled, ...props }: Props) { return (
-
-
{controls.position.topLeft}
-
{controls.position.top}
-
{controls.position.topRight}
-
{controls.position.left}
-
{controls.precision}
-
{controls.position.right}
-
{controls.position.bottomLeft}
-
{controls.position.bottom}
-
{controls.position.bottomRight}
-
+
{controls.position}
- {controls.zoomIn} - {controls.zoomOut} + {controls.zoom} {controls.reset} {controls.fullscreen}
@@ -235,21 +208,8 @@ export default function FeedControls({ shortcutsDisabled, ...props }: Props) { return (
-
- {controls.zoomIn} - {controls.zoomOut} -
-
-
{controls.position.topLeft}
-
{controls.position.top}
-
{controls.position.topRight}
-
{controls.position.left}
-
{controls.precision}
-
{controls.position.right}
-
{controls.position.bottomLeft}
-
{controls.position.bottom}
-
{controls.position.bottomRight}
-
+
{controls.zoom}
+
{controls.position}
{controls.reset} {controls.fullscreen}