♻️ refactor: update pr review

This commit is contained in:
Wahyu Kurniawan 2024-02-27 11:36:14 +07:00
parent 1e056d7969
commit fcaeabf07d
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33
2 changed files with 6 additions and 7 deletions

View File

@ -48,7 +48,7 @@ const SelectItem = forwardRef<HTMLLIElement, SelectItemProps>(
);
}
return null;
}, [rightIcon]);
}, [rightIcon, theme, cloneIcon, cn, selected]);
return (
<li

View File

@ -1,9 +1,11 @@
import React, { useState } from 'react';
import React from 'react';
import { Calendar } from 'components/shared/Calendar';
import { DatePicker } from 'components/shared/DatePicker';
import { Radio } from 'components/shared/Radio';
import { SegmentedControls } from 'components/shared/SegmentedControls';
import { Switch } from 'components/shared/Switch';
import { useState } from 'react';
import { Value } from 'react-calendar/dist/cjs/shared/types';
import { avatars, avatarsFallback } from './renders/avatar';
import { renderBadges } from './renders/badge';
import {
@ -16,6 +18,7 @@ import {
renderCheckbox,
renderCheckboxWithDescription,
} from './renders/checkbox';
import { DropdownExample } from './renders/dropdown';
import {
renderInlineNotificationWithDescriptions,
renderInlineNotifications,
@ -31,10 +34,6 @@ import {
import { renderDefaultTag, renderMinimalTag } from './renders/tag';
import { renderToast, renderToastsWithCta } from './renders/toast';
import { renderTooltips } from './renders/tooltip';
import { DropdownExample } from './renders/dropdown';
type ValuePiece = Date | null;
type Value = ValuePiece | [ValuePiece, ValuePiece];
const Page: React.FC = () => {
const [singleDate, setSingleDate] = useState<Value>();
@ -274,7 +273,7 @@ const Page: React.FC = () => {
{/* Dropdown */}
<div className="flex flex-col gap-10 items-center justify-between">
<h1 className="text-2xl font-bold">Dropdown / Select</h1>
{<DropdownExample />}
<DropdownExample />
</div>
<div className="w-full h border border-gray-200 px-20 my-10" />