WEB-2381 Chore: intake refactor (#5752)
* chore: intake emails and forms * fix: moved files to ee * fix: intake form ui * fix: settings apis integrated * fix: removed publish api * fix: removed space app * fix: lint issue * fix: removed logs * fix: removed comment * fix: improved success image
This commit is contained in:
parent
fb49644185
commit
0f25f39404
13 changed files with 137 additions and 32 deletions
13
packages/types/src/inbox.d.ts
vendored
13
packages/types/src/inbox.d.ts
vendored
|
|
@ -96,3 +96,16 @@ export type TInboxIssuePaginationInfo = TPaginationInfo & {
|
|||
export type TInboxIssueWithPagination = TInboxIssuePaginationInfo & {
|
||||
results: TInboxIssue[];
|
||||
};
|
||||
|
||||
export type TInboxForm = {
|
||||
anchor: string;
|
||||
id: string;
|
||||
is_disabled: boolean;
|
||||
};
|
||||
|
||||
export type TInboxIssueForm = {
|
||||
name: string;
|
||||
description: string;
|
||||
username: string;
|
||||
email: string;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export const Popover = (props: TPopover) => {
|
|||
panelClassName = "",
|
||||
children,
|
||||
popoverButtonRef,
|
||||
buttonRefClassName = "",
|
||||
} = props;
|
||||
// states
|
||||
const [referenceElement, setReferenceElement] = useState<HTMLDivElement | null>(null);
|
||||
|
|
@ -38,7 +39,7 @@ export const Popover = (props: TPopover) => {
|
|||
|
||||
return (
|
||||
<HeadlessReactPopover className={cn("relative flex h-full w-full items-center justify-center", popoverClassName)}>
|
||||
<div ref={setReferenceElement} className="w-full">
|
||||
<div ref={setReferenceElement} className={cn("w-full", buttonRefClassName)}>
|
||||
<HeadlessReactPopover.Button
|
||||
ref={popoverButtonRef as Ref<HTMLButtonElement>}
|
||||
className={cn(
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ export type TPopoverButtonDefaultOptions = {
|
|||
// button and button styling
|
||||
button?: ReactNode;
|
||||
buttonClassName?: string;
|
||||
buttonRefClassName?: string;
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue