@vtex/releases-components
v0.5.3
Published
Useful components and hooks to integrate releases to your application.
Downloads
260
Maintainers
Keywords
Readme
Releases Components
Useful components and hooks to integrate releases to your application.
Installation
yarn add @vtex/releases-components @vtex/admin-ui
You need to have
react
andreact-dom
in your app.
Setup
It's necessary to add the Admin-UI ThemeProvider at the root of your application along with the ReleasesProvider.
import React from 'react'
// 1. Import the ReleasesProvider
import { ReleasesProvider } from '@vtex/...'
// 2. import the createSystem
import { createSystem } from '@vtex/admin-ui'
const [ThemeProvider] = createSystem({key: 'your-application'})
function RootComponent() {
// 3. Use at the root of your app
return (
<ReleasesProvider account="<your_vtex_account>">
<ThemeProvider>
{/** your app code here */}
</ThemeProvider>
</ReleasesProvider>
)