init: label common

This commit is contained in:
unknown
2021-08-23 18:30:37 +07:00
parent b5ad6dd167
commit 6fea2ecc35
5 changed files with 81 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import { useState } from 'react'
import {CarouselCommon, Layout, QuanittyInput } from 'src/components/common'
import {CarouselCommon, LabelCommon, Layout, QuanittyInput } from 'src/components/common'
const dataTest = [{
text:1
},{
@@ -19,8 +19,13 @@ export default function Home() {
return (
<>
<CarouselCommon data={dataTest} Component={test} itemKey="test"/>
<QuanittyInput type ="default" min={5} max={10} initValue={3}/>
<QuanittyInput type ="small" min={3} step={10}/>
<QuanittyInput size ="default" min={5} max={10} initValue={3}/>
<QuanittyInput size ="small" min={3} step={10}/>
<LabelCommon>SEEFOOT</LabelCommon>
<LabelCommon type="discount">-15%</LabelCommon>
<LabelCommon type="waiting">Waitting</LabelCommon>
<LabelCommon type="delivering" >delivering</LabelCommon>
<LabelCommon type="delivered">delivered</LabelCommon>
</>
)
}