fix: project states fixes (#2731)
* fix: project states fixes * fix: states fixes * fix: formating all files
This commit is contained in:
parent
bd1a850f35
commit
20fb79567f
156 changed files with 1585 additions and 1758 deletions
|
|
@ -123,7 +123,7 @@ export const Avatar: React.FC<Props> = (props) => {
|
|||
size = "md",
|
||||
shape = "circle",
|
||||
src,
|
||||
className = ""
|
||||
className = "",
|
||||
} = props;
|
||||
|
||||
// get size details based on the size prop
|
||||
|
|
@ -157,7 +157,9 @@ export const Avatar: React.FC<Props> = (props) => {
|
|||
<div
|
||||
className={`${
|
||||
sizeInfo.fontSize
|
||||
} grid place-items-center h-full w-full ${getBorderRadius(shape)} ${className}`}
|
||||
} grid place-items-center h-full w-full ${getBorderRadius(
|
||||
shape,
|
||||
)} ${className}`}
|
||||
style={{
|
||||
backgroundColor:
|
||||
fallbackBackgroundColor ?? "rgba(var(--color-primary-500))",
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|||
)}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Button.displayName = "plane-ui-button";
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export const buttonStyling: IButtonStyling = {
|
|||
export const getButtonStyling = (
|
||||
variant: TButtonVariant,
|
||||
size: TButtonSizes,
|
||||
disabled: boolean = false
|
||||
disabled: boolean = false,
|
||||
): string => {
|
||||
let _variant: string = ``;
|
||||
const currentVariant = buttonStyling[variant];
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export const CustomSearchSelect = (props: ICustomSearchSelectProps) => {
|
|||
const [referenceElement, setReferenceElement] =
|
||||
useState<HTMLButtonElement | null>(null);
|
||||
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(
|
||||
null
|
||||
null,
|
||||
);
|
||||
|
||||
const { styles, attributes } = usePopper(referenceElement, popperElement, {
|
||||
|
|
@ -46,7 +46,7 @@ export const CustomSearchSelect = (props: ICustomSearchSelectProps) => {
|
|||
query === ""
|
||||
? options
|
||||
: options?.filter((option) =>
|
||||
option.query.toLowerCase().includes(query.toLowerCase())
|
||||
option.query.toLowerCase().includes(query.toLowerCase()),
|
||||
);
|
||||
|
||||
const comboboxProps: any = {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ const CustomSelect = (props: ICustomSelectProps) => {
|
|||
const [referenceElement, setReferenceElement] =
|
||||
useState<HTMLButtonElement | null>(null);
|
||||
const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(
|
||||
null
|
||||
null,
|
||||
);
|
||||
|
||||
const { styles, attributes } = usePopper(referenceElement, popperElement, {
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
export * from "./input";
|
||||
export * from "./textarea";
|
||||
export * from "./input-color-picker"
|
||||
export * from "./input-color-picker";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export interface TextAreaProps
|
|||
// Updates the height of a <textarea> when the value changes.
|
||||
const useAutoSizeTextArea = (
|
||||
textAreaRef: HTMLTextAreaElement | null,
|
||||
value: any
|
||||
value: any,
|
||||
) => {
|
||||
React.useEffect(() => {
|
||||
if (textAreaRef) {
|
||||
|
|
@ -63,7 +63,7 @@ const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
|||
{...rest}
|
||||
/>
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
export { TextArea };
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ interface ICircularProgressIndicator {
|
|||
}
|
||||
|
||||
export const CircularProgressIndicator: React.FC<ICircularProgressIndicator> = (
|
||||
props
|
||||
props,
|
||||
) => {
|
||||
const { size = 40, percentage = 25, strokeWidth = 6, children } = props;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue