From 77189f139ae72a9796ec63c332474c7fa569ddd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 3 Oct 2019 11:41:29 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Switch=20SiteInfo=20to=20use=20u?= =?UTF-8?q?seOvermind?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../items/Deployment/Netlify/SiteInfo/SiteInfo.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/SiteInfo.tsx b/packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/SiteInfo.tsx index 7072feedbd8..02f8bb5f6fb 100644 --- a/packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/SiteInfo.tsx +++ b/packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Netlify/SiteInfo/SiteInfo.tsx @@ -1,10 +1,10 @@ +import { resolveDirectory } from '@codesandbox/common/lib/sandbox/modules'; + import React, { FunctionComponent } from 'react'; -import { useOvermind } from 'app/overmind'; +import { useOvermind } from 'app/overmind'; import getNetlifyConfig from 'app/utils/getNetlifyConfig'; -import { resolveDirectory } from '@codesandbox/common/lib/sandbox/modules'; - import { WorkspaceInputContainer, WorkspaceSubtitle, @@ -40,6 +40,7 @@ export const SiteInfo: FunctionComponent = () => { editor: { currentSandbox }, }, } = useOvermind(); + const functionDirectory = getFunctionDir(currentSandbox); const functions = functionDirectory ? currentSandbox.modules.filter(