Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default function ConverterBox({
"&:hover": { bgcolor: "error.dark" },
}}
>
<Delete sx={{ fontSize: 16 }} />
<Delete sx={{ fontSize: 16, color: "white" }} />
</IconButton>
)}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ export default function ExplorerBox({
}
onClick={() => handleExplorerDetailsClick(explorer)}
size="small"
icon={<Info sx={{ color: "white !important" }} />}
color="primary"
icon={<Info />}
sx={{
bgcolor: "primary.main",
"&:hover": {
Expand All @@ -151,7 +152,7 @@ export default function ExplorerBox({
"&:hover": { bgcolor: "error.dark" },
}}
>
<Delete sx={{ fontSize: 16 }} />
<Delete sx={{ fontSize: 16, color: "white" }} />
</IconButton>
)}
</>
Expand Down
10 changes: 8 additions & 2 deletions DashAI/front/src/components/notebooks/tool/ToolGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import ConfigureToolModal from "./ConfigureToolModal";
import { useTourContext } from "../../tour/TourProvider";
import { groupByCategory, sortCategories } from "./toolCategories";
import { useTranslation } from "react-i18next";
import { useTheme } from "@mui/material/styles";

export default function ToolGrid({ tools, notebook, FormComponent }) {
const [open, setOpen] = useState(false);
const [selectedTool, setSelectedTool] = useState(null);
const tourContext = useTourContext();
const { t } = useTranslation(["datasets", "common"]);
const theme = useTheme();

const grouped = useMemo(() => groupByCategory(tools), [tools]);
const categories = useMemo(
Expand Down Expand Up @@ -62,10 +64,14 @@ export default function ToolGrid({ tools, notebook, FormComponent }) {
gap: 1,
mb: 1.5,
pb: 0.5,
borderBottom: "1px solid rgb(39, 39, 42)",
borderBottom: "1px solid",
borderColor: theme.palette.divider,
}}
>
<Typography variant="subtitle2" sx={{ flex: 1 }}>
<Typography
variant="subtitle2"
sx={{ flex: 1, color: "text.primary" }}
>
{cat}
</Typography>
<Typography variant="caption" sx={{ color: "text.secondary" }}>
Expand Down