mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 14:34:09 +00:00
feature: secret sync base + aws parameter store & github
This commit is contained in:
@@ -7,7 +7,7 @@ import { twMerge } from "tailwind-merge";
|
||||
import { Card, CardBody, CardFooter, CardTitle } from "../Card";
|
||||
import { IconButton } from "../IconButton";
|
||||
|
||||
export type ModalContentProps = DialogPrimitive.DialogContentProps & {
|
||||
export type ModalContentProps = Omit<DialogPrimitive.DialogContentProps, "title"> & {
|
||||
title?: ReactNode;
|
||||
subTitle?: ReactNode;
|
||||
footerContent?: ReactNode;
|
||||
|
||||
@@ -9,6 +9,7 @@ export type SwitchProps = Omit<SwitchPrimitive.SwitchProps, "checked" | "disable
|
||||
isRequired?: boolean;
|
||||
isDisabled?: boolean;
|
||||
containerClassName?: string;
|
||||
thumbClassName?: string;
|
||||
};
|
||||
|
||||
export const Switch = ({
|
||||
@@ -19,6 +20,7 @@ export const Switch = ({
|
||||
isDisabled,
|
||||
isRequired,
|
||||
containerClassName,
|
||||
thumbClassName,
|
||||
...props
|
||||
}: SwitchProps): JSX.Element => (
|
||||
<div className={twMerge("flex items-center font-inter text-bunker-300", containerClassName)}>
|
||||
@@ -38,7 +40,12 @@ export const Switch = ({
|
||||
)}
|
||||
id={id}
|
||||
>
|
||||
<SwitchPrimitive.Thumb className="block h-4 w-4 translate-x-0.5 rounded-full border-none bg-black shadow transition-all will-change-transform data-[state=checked]:translate-x-[18px]" />
|
||||
<SwitchPrimitive.Thumb
|
||||
className={twMerge(
|
||||
"block h-4 w-4 translate-x-0.5 rounded-full border-none bg-black shadow transition-all will-change-transform data-[state=checked]:translate-x-[18px]",
|
||||
thumbClassName
|
||||
)}
|
||||
/>
|
||||
</SwitchPrimitive.Root>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user