diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 45d98702..b687e364 100644 --- a/packages/bruno-app/src/components/Welcome/index.js +++ b/packages/bruno-app/src/components/Welcome/index.js @@ -18,6 +18,7 @@ import Bruno from 'components/Bruno'; import CreateCollection from 'components/Sidebar/CreateCollection'; import SelectCollection from 'components/Sidebar/Collections/SelectCollection'; import importCollection from 'utils/collections/import'; +import { isElectron } from 'utils/common/platform'; import StyledWrapper from './StyledWrapper'; const Welcome = () => { @@ -25,6 +26,7 @@ const Welcome = () => { const [createCollectionModalOpen, setCreateCollectionModalOpen] = useState(false); const [addCollectionToWSModalOpen, setAddCollectionToWSModalOpen] = useState(false); const { activeWorkspaceUid } = useSelector((state) => state.workspaces); + const isPlatformElectron = isElectron(); const handleCreateCollection = (values) => { setCreateCollectionModalOpen(false); @@ -93,14 +95,20 @@ const Welcome = () => {
Local Collections
-
-
- setCreateCollectionModalOpen(true)}>Create Collection + {isPlatformElectron ? ( +
+
+ setCreateCollectionModalOpen(true)}>Create Collection +
+
+ Open Collection +
-
- Open Collection + ) : ( +
+ Local collections are only available on the desktop app.
-
+ )}
Links