init quanitty input

This commit is contained in:
unknown
2021-08-23 10:18:37 +07:00
parent bbcc3b3dad
commit f604fbc787
6 changed files with 40 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import { ButtonCommon, CarouselCommon, Layout } from 'src/components/common'
import {CarouselCommon, Layout, QuanittyInput } from 'src/components/common'
const dataTest = [{
text:1
},{
@@ -15,17 +15,12 @@ const dataTest = [{
}]
const test = (props:any)=><div className="h-64 bg-yellow-300">{props.text}</div>
export default function Home() {
return (
<>
<div>This is home page</div>
<ButtonCommon />
<p>Go to <code>pages/index.tsx</code> to get your hand dirty!</p>
<p>Go to <code>src/components</code> to make your awesome component!</p>
<p>Go to <code>src/styles</code> to find global styles!</p>
<CarouselCommon data={dataTest} Component={test} key="test"/>
<CarouselCommon data={dataTest} Component={test} itemKey="test"/>
<QuanittyInput/>
<input type="number" />
<input type="text" />
</>
)
}