Skip to content
Snippets Groups Projects
Commit d5ad2b4e authored by Jonathan Eatherly's avatar Jonathan Eatherly
Browse files

use cx module for conditional classnames in Table.jsx

parent 68e8be15
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import { columnsAreValid, getFriendlyName } from "metabase/visualizations/lib/ut
import ChartSettingOrderedFields from "metabase/visualizations/components/settings/ChartSettingOrderedFields.jsx";
import _ from "underscore";
import cx from "classnames";
import RetinaImage from "react-retina-image";
import { getIn } from "icepick";
......@@ -135,7 +136,7 @@ export default class Table extends Component {
if (isColumnsDisabled) {
return (
<div className={"flex-full px1 pb1 text-centered flex flex-column layout-centered " + (isDashboard ? "text-slate-light" : "text-slate")}>
<div className={cx("flex-full px1 pb1 text-centered flex flex-column layout-centered", { "text-slate-light": isDashboard, "text-slate": !isDashboard })} >
<RetinaImage
width={99}
src="app/assets/img/hidden-field.png"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment