Skip to content

Commit

Permalink
Fixed: Date Picker width issue (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arifulislam5577 authored Nov 28, 2023
1 parent 39db926 commit d7f0055
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/ComponentsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import { CloudArrowUp, GridFour, Phone, User } from 'phosphor-react'
import { useState } from 'react'
import { CustomizedBarSizeWithAxisData } from '~/app/docs/components/barChart/variant/CustomizedBarSizeWithAxisData'
import { DefaultDatePicker } from '~/app/docs/components/datePicker/variant/DefaultDatePicker'
import { DefaultRadio } from '~/app/docs/components/radio/variant/DefaultRadio'

import { Button, CheckboxGroup, Modal, Pagination, Slider, Tooltip, Tabs } from '~/src'
import { Button, CheckboxGroup, Modal, Pagination, Slider, Tooltip, Tabs, DatePicker } from '~/src'

export const SliderComponent = () => {
return (
Expand Down Expand Up @@ -100,9 +99,12 @@ export const CheckboxGroupComponent = () => {
)
}
export const DatePickerComponent = () => {
const [_, setDate] = useState<Date | null>(null)
return (
<div className="scale-75">
<DefaultDatePicker />
<div className="mx-auto flex w-3/5 scale-75">
<DatePicker singleDatePicker={setDate}>
<DatePicker.SingleDate />
</DatePicker>
</div>
)
}
Expand All @@ -125,7 +127,7 @@ export const ModalComponent = () => {
<Modal.Header>Do you want to upload this file?</Modal.Header>
<Modal.Body>
<div className="space-y-6">
<p className="text-metal-500 text-body-4 leading-relaxed">
<p className="text-body-4 leading-relaxed text-metal-500">
Contrary to popular belief, Lorem Ipsum is not simply random text.
</p>
</div>
Expand Down

0 comments on commit d7f0055

Please sign in to comment.