Skip to content

Commit

Permalink
Removed: Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arifulislam5577 committed Feb 26, 2024
1 parent 435a64c commit 1245249
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 222 deletions.
38 changes: 0 additions & 38 deletions app/new/Checkbox/Checkbox.tsx

This file was deleted.

Empty file removed app/new/Checkbox/index.tsx
Empty file.
27 changes: 0 additions & 27 deletions app/new/Checkbox/theme.ts

This file was deleted.

18 changes: 0 additions & 18 deletions app/new/NumberInput/Button.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions app/new/NumberInput/Input.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions app/new/NumberInput/NumberInput.tsx

This file was deleted.

1 change: 0 additions & 1 deletion app/new/NumberInput/index.tsx

This file was deleted.

Empty file removed app/new/NumberInput/theme.ts
Empty file.
21 changes: 0 additions & 21 deletions app/new/Radio/Radio.tsx

This file was deleted.

1 change: 0 additions & 1 deletion app/new/Radio/index.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions app/new/Radio/theme.ts

This file was deleted.

20 changes: 0 additions & 20 deletions app/new/Textarea/Textarea.tsx

This file was deleted.

32 changes: 3 additions & 29 deletions app/new/page.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,5 @@
'use client'

import { Minus, Plus } from 'phosphor-react'
import { useState } from 'react'
import { Label } from '../src'
import { NumberInput } from './NumberInput'

const Page = () => {
const [number, setNumber] = useState(0)
return (
<section className="py-20">
<div className="container space-y-4">
<fieldset className="space-y-1">
<Label>Choose Number</Label>
<NumberInput>
<NumberInput.Button disabled={number === 0} onClick={() => setNumber((prev) => prev - 1)}>
<Minus size={16} color="#455468" />
</NumberInput.Button>
<NumberInput.Input min={0} max={100} value={number} onChange={(e) => setNumber(+e.target.value)} />
<NumberInput.Button disabled={number === 100} onClick={() => setNumber((prev) => prev + 1)}>
<Plus size={16} color="#455468" />
</NumberInput.Button>
</NumberInput>
<p className="text-body-4 font-normal text-metal-600">Number Must be between 1 to 100</p>
</fieldset>
</div>
</section>
)
const page = () => {
return <div>page</div>
}

export default Page
export default page

0 comments on commit 1245249

Please sign in to comment.