Skip to content

Commit d91b0f8

Browse files
Remove EMBED_LIGHT_THEME feature flag out of code since it's always true (codesandbox#3568)
1 parent 7e4a905 commit d91b0f8

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

packages/app/src/app/pages/common/Modals/ShareModal/index.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Button } from '@codesandbox/common/lib/components/Button';
22
import track from '@codesandbox/common/lib/utils/analytics';
3-
import { EMBED_LIGHT_THEME } from '@codesandbox/common/lib/utils/feature-flags';
43
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
54
import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator';
65
import { useOvermind } from 'app/overmind';
@@ -147,15 +146,13 @@ export const ShareModal: React.FC<Props> = () => {
147146
value={view}
148147
setValue={setView}
149148
/>
150-
{EMBED_LIGHT_THEME && (
151-
<PaddedPreference
152-
title="Theme"
153-
type="dropdown"
154-
options={THEME_OPTIONS}
155-
value={theme}
156-
setValue={setTheme}
157-
/>
158-
)}
149+
<PaddedPreference
150+
title="Theme"
151+
type="dropdown"
152+
options={THEME_OPTIONS}
153+
value={theme}
154+
setValue={setTheme}
155+
/>
159156
<PaddedPreference
160157
title="Auto resize"
161158
type="boolean"
@@ -213,7 +210,7 @@ export const ShareModal: React.FC<Props> = () => {
213210
<h4>Default module to show</h4>
214211

215212
<FilesContainer>
216-
{/*
213+
{/*
217214
// @ts-ignore */}
218215
<Files
219216
modules={sandbox.modules}

packages/common/src/utils/feature-flags.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
it's a JS file, so you can add whatever logic you want as long as it's static
77
*/
88

9-
export const EMBED_LIGHT_THEME = true;
109
export const REDESIGNED_SIDEBAR = localStorage.REDESIGNED_SIDEBAR || false;

0 commit comments

Comments
 (0)