[@portaljs/ckan][m] - fix build
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
# PortalJS React Components
|
||||
# PortalJS CKAN Library
|
||||
|
||||
**Storybook:** https://storybook.portaljs.org
|
||||
**Docs**: https://portaljs.org/docs
|
||||
This is a library intended for the use with a CKAN Backend, it is composed of:
|
||||
|
||||
- Types mapping the CKAN API Objects
|
||||
- A CKAN object that makes API calls
|
||||
- Components that are usually needed in a data portal(searching, pagination, listing etc)
|
||||
|
||||
## Usage
|
||||
|
||||
To install this package on your project:
|
||||
|
||||
```bash
|
||||
npm i @portaljs/components
|
||||
npm i @portaljs/ckan
|
||||
```
|
||||
|
||||
> Note: React 18 is required.
|
||||
@@ -17,13 +20,5 @@ You'll also have to import the styles CSS file in your project:
|
||||
|
||||
```ts
|
||||
// E.g.: Next.js => pages/_app.tsx
|
||||
import '@portaljs/components/styles.css'
|
||||
```
|
||||
|
||||
## Dev
|
||||
|
||||
Use Storybook to work on components by running:
|
||||
|
||||
```bash
|
||||
npm run storybook
|
||||
import '@portaljs/ckan/styles.css'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user