1.0.16 • Published 1 year ago

winery_uikit v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

WinerySwap UIkit

WinerySwap UIkit is a set of React components and hooks used to build pages on WinerySwap's apps.

Install

yarn add @wineryswap/uikit

Setup

Theme

Before using WinerySwap UIkit, you need to provide the theme file to styled-component.

import { ThemeProvider } from 'styled-components'
...
<ThemeProvider>...</ThemeProvider>

Reset

A reset CSS is available as a global styled component.

import { ResetCSS } from '@wineryswap/uikit'
...
<ResetCSS />

Types

This project is built with Typescript and export all the relevant types.

Update 3/7/2023

  • 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

NOTE:

  • chú ý file NetworkButton, kiem tra chainId BSC hay BSC Testnet
  • file config/networkmodal