Refactor: update selectItem component and remove unused imports (#5124)
This commit is contained in:
parent
cebf4b103b
commit
ba75a15548
3 changed files with 6 additions and 8 deletions
|
|
@ -107,7 +107,9 @@ const SelectItem = React.forwardRef<
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
<SelectPrimitive.ItemText>
|
||||||
|
<div>{children}</div>
|
||||||
|
</SelectPrimitive.ItemText>
|
||||||
</SelectPrimitive.Item>
|
</SelectPrimitive.Item>
|
||||||
));
|
));
|
||||||
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,9 @@ const SelectItem = React.forwardRef<
|
||||||
</SelectPrimitive.ItemIndicator>
|
</SelectPrimitive.ItemIndicator>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
<SelectPrimitive.ItemText>
|
||||||
|
<div>{children}</div>
|
||||||
|
</SelectPrimitive.ItemText>
|
||||||
</SelectPrimitive.Item>
|
</SelectPrimitive.Item>
|
||||||
));
|
));
|
||||||
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,6 @@ import IconComponent from "@/components/common/genericIconComponent";
|
||||||
import ShadTooltip from "@/components/common/shadTooltipComponent";
|
import ShadTooltip from "@/components/common/shadTooltipComponent";
|
||||||
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
|
||||||
Select,
|
|
||||||
SelectContent,
|
|
||||||
SelectItem,
|
|
||||||
SelectTrigger,
|
|
||||||
} from "@/components/ui/select-custom";
|
|
||||||
import { ButtonHTMLAttributes, useState } from "react";
|
import { ButtonHTMLAttributes, useState } from "react";
|
||||||
|
|
||||||
export function EditMessageButton({
|
export function EditMessageButton({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue