WinerySwap UIkit is a set of React components and hooks used to build pages on WinerySwap's apps.
yarn add @wineryswap/uikit
Before using WinerySwap UIkit, you need to provide the theme file to styled-component.
import { ThemeProvider } from 'styled-components'
...
<ThemeProvider>...</ThemeProvider>
A reset CSS is available as a global styled component.
import { ResetCSS } from '@wineryswap/uikit'
...
<ResetCSS />
This project is built with Typescript and export all the relevant types.
- b1: thay đổi gittoken trong file .npmrc để cấp quyền install package
- brand dev là brand chính,package uikit của source winery dùng file dist và package.json của source này. lúc deploy chỉ cần build ra thư mục dist rồi push lên dev, chạy lệnh update:uikit của source winery thì tự động uikit sẽ được cập nhật
- chú ý file NetworkButton, kiem tra chainId BSC hay BSC Testnet
- file config/networkmodal