fix: package version fixes and mentions build error fixes (#2665)

This commit is contained in:
sriram veeraghanta 2023-11-06 16:28:15 +05:30 committed by GitHub
parent a03e0c788f
commit 1ed72c51df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 108 additions and 92 deletions

View file

@ -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,

View file

@ -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);

View file

@ -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>

View file

@ -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 },

View file

@ -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();

View file

@ -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 },

View file

@ -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,

View file

@ -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,

View file

@ -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();

View file

@ -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;