diff --git a/renderer/components/Workspaces/WorkspaceConfigurer/index.js b/renderer/components/Workspaces/WorkspaceConfigurer/index.js index 50418e5d..25ea54d8 100644 --- a/renderer/components/Workspaces/WorkspaceConfigurer/index.js +++ b/renderer/components/Workspaces/WorkspaceConfigurer/index.js @@ -3,38 +3,37 @@ import React from "react"; import { useSelector } from "react-redux"; const WorkspaceConfigurer = ({onClose}) => { - const { workspaces } = useSelector((state) => state.workspaces); + const { workspaces } = useSelector((state) => state.workspaces); - const onSubmit = () => { - onClose(); - } + const onSubmit = () => { + onClose(); + } - - return ( - - - - ) + return ( + + + + ) } -export default WorkspaceConfigurer; \ No newline at end of file +export default WorkspaceConfigurer; diff --git a/renderer/components/Workspaces/WorkspaceSelector/index.js b/renderer/components/Workspaces/WorkspaceSelector/index.js index ab55224c..6f6eabc4 100644 --- a/renderer/components/Workspaces/WorkspaceSelector/index.js +++ b/renderer/components/Workspaces/WorkspaceSelector/index.js @@ -10,7 +10,7 @@ const WorkspaceSelector = () => { const dropdownTippyRef = useRef(); const [openWorkspacesModal, setOpenWorkspacesModal] = useState(false); const [activeWorkspace, setActiveWorkspace] = useState({}); - const dispatch = useDispatch(); + const dispatch = useDispatch(); const { workspaces, activeWorkspaceUid } = useSelector((state) => state.workspaces); @@ -21,14 +21,14 @@ const WorkspaceSelector = () => { const Icon = forwardRef((props, ref) => { return (
-
- - - - - {activeWorkspace.name} - -
+
+ + + + + {activeWorkspace.name} + +
); @@ -36,19 +36,19 @@ const WorkspaceSelector = () => { const onDropdownCreate = (ref) => dropdownTippyRef.current = ref; - const handleSelectWorkspace = (workspace) => { - dispatch(selectWorkspace(workspace)); - } + const handleSelectWorkspace = (workspace) => { + dispatch(selectWorkspace(workspace)); + } return (
} placement='bottom-end'> - {workspaces && workspaces.length && workspaces.map((workspace) => ( -
handleSelectWorkspace(workspace)}> - {workspace.name} -
- ))} + {workspaces && workspaces.length && workspaces.map((workspace) => ( +
handleSelectWorkspace(workspace)}> + {workspace.name} +
+ ))}
{ setOpenWorkspacesModal(true);