Commit f3cf5c5
authored
Change the import location for accordion.css
If an application does not have the `@gouvfr/dsfr` module installed, the following error is expected:
```
./node_modules/@codegouvfr/react-dsfr/Accordion.js
Module not found: Can't resolve '@gouvfr/dsfr/component/accordion/accordion.css' in 'path\to\application\node_modules\@codegouvfr\react-dsfr'
```
Given that the css required is also in the `@codegouvfr/react-dsfr` module, we can locate this css locally in the module and prevent dependency errors.
Signed-off-by: Matt Clark <87824367+isMattCoding@users.noreply.github.com>1 parent 9e92b6f commit f3cf5c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments