Skip to content

Commit dc2c9e8

Browse files
authored
remove ads (codesandbox#3895)
1 parent 2433908 commit dc2c9e8

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Advertisement/Advertisement.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/app/src/app/pages/Sandbox/Editor/Workspace/Advertisement/elements.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/app/src/app/pages/Sandbox/Editor/Workspace/Advertisement/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/app/src/app/pages/Sandbox/Editor/Workspace/index.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import getWorkspaceItems, { getDisabledItems } from 'app/overmind/utils/items';
1010
import React from 'react';
1111
import { withTheme } from 'styled-components';
1212

13-
import { Advertisement } from './Advertisement';
1413
import { Chat } from './Chat';
1514
import { Chat as ChatOld } from './ChatOld';
1615
import { ConnectionNotice } from './ConnectionNotice';
@@ -64,8 +63,6 @@ if (COMMENTS && NEW_SIDEBAR) {
6463
export const WorkspaceComponent = ({ theme }) => {
6564
const { state } = useOvermind();
6665
const {
67-
editor: { currentSandbox },
68-
isPatron,
6966
live: { isLive, roomInfo },
7067
preferences: {
7168
settings: { zenMode },
@@ -108,17 +105,11 @@ export const WorkspaceComponent = ({ theme }) => {
108105
) : (
109106
<Chat />
110107
))}
111-
112-
{NEW_SIDEBAR &&
113-
!(isPatron || (currentSandbox && currentSandbox.owned)) &&
114-
!(isLive && roomInfo.chatEnabled) && <Advertisement />}
115108
</>
116109
</WorkspaceWrapper>
117110

118111
{!zenMode && !NEW_SIDEBAR && (
119112
<>
120-
{!(isPatron || currentSandbox.owned) && <Advertisement />}
121-
122113
<ContactContainer>
123114
<SocialInfo style={{ display: 'inline-block' }} />
124115

0 commit comments

Comments
 (0)