Skip to content

Commit 881084e

Browse files
committed
fix: playground scaffolding include antd styles via index.css
1 parent 6b7d964 commit 881084e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/cubejs-playground/src/DashboardSource.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import DashboardStoreSnippet from "./source/DashboardStoreSnippet";
1212
import SourceSnippet from "./source/SourceSnippet";
1313

1414
const indexCss = `
15+
@import '~antd/dist/antd.css';
1516
body {
1617
background-color: #f0f2f5 !important;
1718
}
@@ -64,7 +65,7 @@ class DashboardSource {
6465

6566
async persist() {
6667
const updateIndexCss = this.appLayoutAdded ? [
67-
{ ...this.indexCssFile, content: this.indexCssFile.content + indexCss }
68+
{ ...this.indexCssFile, content: indexCss }
6869
] : [];
6970
const toPersist = this.filesToPersist.concat(
7071
Object.keys(this.fileToTargetSource).map(fileName => ({

packages/cubejs-playground/src/scaffolding/react/App.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from "react";
22
import { ApolloProvider } from '@apollo/react-hooks';
3-
import "antd/dist/antd.css";
4-
import "./index.css";
53
import { Layout } from "antd";
64
import client from "./graphql/client";
75
import Header from "./components/Header";

0 commit comments

Comments
 (0)