Skip to content

Commit

Permalink
Fix site build, css path update
Browse files Browse the repository at this point in the history
  • Loading branch information
origami-z committed Apr 3, 2024
1 parent a271693 commit 522e21f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion site/docs/components/ag-grid-theme/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To import the Salt AG Grid theme, use:

```js
import "ag-grid-community/styles/ag-grid.css";
import "@salt-ds/ag-grid-theme/salt.css";
import "@salt-ds/ag-grid-theme/salt-ag-theme.css";
```

Then wrap your AG Grid with the corresponding class names shown below:
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/components/AGThemeProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FC, ReactNode } from "react";

import "ag-grid-community/styles/ag-grid.css";
import "@salt-ds/ag-grid-theme/salt.css";
import "@salt-ds/ag-grid-theme/salt-ag-theme.css";

interface AGThemeProviderProps {
children: ReactNode;
Expand Down
3 changes: 0 additions & 3 deletions site/src/examples/ag-grid-theme/Default.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { ColumnApi, GridApi, GridReadyEvent } from "ag-grid-community";
import { defaultData } from "./data";
import { useDensity, useTheme } from "@salt-ds/core";

import "ag-grid-community/styles/ag-grid.css";
import "@salt-ds/ag-grid-theme/salt.css";

export const Default = (): ReactElement => {
const [isGridReady, setGridReady] = useState(false);
const { mode } = useTheme();
Expand Down

0 comments on commit 522e21f

Please sign in to comment.