fix: package version fixes and mentions build error fixes (#2665)
This commit is contained in:
parent
a03e0c788f
commit
1ed72c51df
24 changed files with 108 additions and 92 deletions
|
|
@ -50,9 +50,9 @@ export const AddComment: React.FC<Props> = ({ disabled = false, onSubmit, showAc
|
|||
const editorRef = React.useRef<any>(null);
|
||||
|
||||
const router = useRouter();
|
||||
const { workspaceSlug, projectId } = router.query;
|
||||
const { workspaceSlug } = router.query;
|
||||
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug as string | undefined, projectId as string | undefined);
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
control,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export const CommentCard: React.FC<Props> = ({
|
|||
const editorRef = React.useRef<any>(null);
|
||||
const showEditorRef = React.useRef<any>(null);
|
||||
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug, comment.project_detail.id)
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = (props) => {
|
|||
|
||||
const { setShowAlert } = useReloadConfirmations();
|
||||
|
||||
const editorSuggestion = useEditorSuggestions(workspaceSlug, issue.project_id)
|
||||
const editorSuggestion = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
|
|
@ -164,8 +164,9 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = (props) => {
|
|||
)}
|
||||
/>
|
||||
<div
|
||||
className={`absolute right-5 bottom-5 text-xs text-custom-text-200 border border-custom-border-400 rounded-xl w-[6.5rem] py-1 z-10 flex items-center justify-center ${isSubmitting === "saved" ? "fadeOut" : "fadeIn"
|
||||
}`}
|
||||
className={`absolute right-5 bottom-5 text-xs text-custom-text-200 border border-custom-border-400 rounded-xl w-[6.5rem] py-1 z-10 flex items-center justify-center ${
|
||||
isSubmitting === "saved" ? "fadeOut" : "fadeIn"
|
||||
}`}
|
||||
>
|
||||
{isSubmitting === "submitting" ? "Saving..." : "Saved"}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ export const DraftIssueForm: FC<IssueFormProps> = (props) => {
|
|||
|
||||
const { setToastAlert } = useToast();
|
||||
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug as string | undefined, projectId)
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
formState: { errors, isSubmitting },
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export const IssueForm: FC<IssueFormProps> = observer((props) => {
|
|||
|
||||
const user = userStore.currentUser;
|
||||
|
||||
const editorSuggestion = useEditorSuggestions(workspaceSlug as string | undefined, projectId);
|
||||
const editorSuggestion = useEditorSuggestions();
|
||||
|
||||
const { setToastAlert } = useToast();
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ export const IssueCommentCard: React.FC<IIssueCommentCard> = (props) => {
|
|||
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug, projectId);
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
formState: { isSubmitting },
|
||||
|
|
|
|||
|
|
@ -51,9 +51,9 @@ export const IssueCommentEditor: React.FC<IIssueCommentEditor> = (props) => {
|
|||
const editorRef = React.useRef<any>(null);
|
||||
|
||||
const router = useRouter();
|
||||
const { workspaceSlug, projectId } = router.query;
|
||||
const { workspaceSlug } = router.query;
|
||||
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug as string | undefined, projectId as string | undefined);
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
control,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export const PeekOverviewIssueDetails: FC<IPeekOverviewIssueDetails> = (props) =
|
|||
const [characterLimit, setCharacterLimit] = useState(false);
|
||||
// hooks
|
||||
const { setShowAlert } = useReloadConfirmations();
|
||||
const editorSuggestions = useEditorSuggestions(workspaceSlug, issue.project_detail.id);
|
||||
const editorSuggestions = useEditorSuggestions();
|
||||
|
||||
const {
|
||||
handleSubmit,
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ export const CreateUpdateBlockInline: FC<Props> = ({
|
|||
const router = useRouter();
|
||||
const { workspaceSlug, projectId, pageId } = router.query;
|
||||
|
||||
const editorSuggestion = useEditorSuggestions(workspaceSlug as string | undefined, projectId as string | undefined)
|
||||
const editorSuggestion = useEditorSuggestions();
|
||||
|
||||
const { setToastAlert } = useToast();
|
||||
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export const SinglePageBlock: React.FC<Props> = ({ block, projectDetails, showBl
|
|||
},
|
||||
});
|
||||
|
||||
const editorSuggestion = useEditorSuggestions(workspaceSlug as string | undefined, projectId as string | undefined);
|
||||
const editorSuggestion = useEditorSuggestions();
|
||||
|
||||
const updatePageBlock = async (formData: Partial<IPageBlock>) => {
|
||||
if (!workspaceSlug || !projectId || !pageId) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue