feat: insights orgs [CAL-1888] (#9551)
* initial commit * fixes on data returned * mobile style fixes * Update on styles and dates not being shown on graphics * feat: update insights filters UI (#9756) * feat: update insights filters UI Signed-off-by: Udit Takkar <[email protected]> * Fixes for filters with new UI * fix initialConfig lost while clearing filters * Add single user conditional for first render --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Alan <[email protected]> --------- Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Efraín Rochín <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
22 files changed
+993
-405
No files matched your search
@@ -108,6 +108,7 @@ type DropdownItemProps = {
|
||||
EndIcon?: SVGComponent;
|
||||
href?: string;
|
||||
disabled?: boolean;
|
||||
childrenClassName?: string;
|
||||
} & ButtonOrLinkProps;
|
||||
|
||||
type ButtonOrLinkProps = ComponentProps<"button"> & ComponentProps<"a">;
|
||||
@@ -129,7 +130,7 @@ export function ButtonOrLink({ href, ...props }: ButtonOrLinkProps) {
|
||||
}
|
||||
|
||||
export const DropdownItem = (props: DropdownItemProps) => {
|
||||
const { StartIcon, EndIcon, children, color, ...rest } = props;
|
||||
const { StartIcon, EndIcon, children, color, childrenClassName, ...rest } = props;
|
||||
|
||||
return (
|
||||
<ButtonOrLink
|
||||
@@ -140,7 +141,7 @@ export const DropdownItem = (props: DropdownItemProps) => {
|
||||
)}>
|
||||
<>
|
||||
{StartIcon && <StartIcon className="h-4 w-4" />}
|
||||
<div className="text-sm font-medium leading-5">{children}</div>
|
||||
<div className={classNames("text-sm font-medium leading-5", childrenClassName)}>{children}</div>
|
||||
{EndIcon && <EndIcon className="h-4 w-4" />}
|
||||
</>
|
||||
</ButtonOrLink>
|
||||
|
||||
Reference in new issue
Block a user