From e0428f21e3f70a4a1b9ab858a7182b6036f87565 Mon Sep 17 00:00:00 2001 From: therealrinku Date: Thu, 26 Jan 2023 21:25:13 +0545 Subject: [PATCH 1/2] minor typo fixes --- studio/lib/constants/prism.ts | 2 +- studio/lib/gotrue.ts | 2 +- studio/lib/helpers.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/studio/lib/constants/prism.ts b/studio/lib/constants/prism.ts index 47bf84c5a0d..ca767a6ac84 100644 --- a/studio/lib/constants/prism.ts +++ b/studio/lib/constants/prism.ts @@ -29,7 +29,7 @@ export function dart(Prism: any) { className, { // variables and parameters - // this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods) + // add this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods) pattern: RegExp(packagePrefix + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source), lookbehind: true, inside: className.inside, diff --git a/studio/lib/gotrue.ts b/studio/lib/gotrue.ts index e4c6383a150..3e6d7f258f6 100644 --- a/studio/lib/gotrue.ts +++ b/studio/lib/gotrue.ts @@ -39,7 +39,7 @@ export const getIdentity = (gotrueUser: User) => { } // NOTE: do not use any imports in this function, -// as it is use standalone in the documents head +// as it is used standalone in the documents head export const getReturnToPath = (fallback = '/projects') => { const searchParams = new URLSearchParams(location.search) let returnTo = searchParams.get('returnTo') ?? fallback diff --git a/studio/lib/helpers.ts b/studio/lib/helpers.ts index ef127b6ab46..d16f3ef2260 100644 --- a/studio/lib/helpers.ts +++ b/studio/lib/helpers.ts @@ -111,7 +111,7 @@ export const filterSensitiveProjectProps = (project: any) => { } /** - * Returns undefine if the string isn't parse-able + * Returns undefined if the string isn't parse-able */ export const tryParseInt = (str: string) => { try { @@ -121,7 +121,7 @@ export const tryParseInt = (str: string) => { } } -// Used as checker for memoised components +// Used as checker for memoized components export const propsAreEqual = (prevProps: any, nextProps: any) => { try { Object.keys(prevProps).forEach((key) => { From a30308a041be35c4bfa25266b0bea3b5b0b1a173 Mon Sep 17 00:00:00 2001 From: therealrinku Date: Fri, 27 Jan 2023 10:54:27 +0545 Subject: [PATCH 2/2] comment sentence fix --- studio/lib/constants/prism.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/lib/constants/prism.ts b/studio/lib/constants/prism.ts index ca767a6ac84..473c542bcf3 100644 --- a/studio/lib/constants/prism.ts +++ b/studio/lib/constants/prism.ts @@ -29,7 +29,7 @@ export function dart(Prism: any) { className, { // variables and parameters - // add this to support class names (or generic parameters) which do not contain a lower case letter (also works for methods) + // supports class names (or generic parameters) which do not contain a lower case letter (also works for methods) pattern: RegExp(packagePrefix + /[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source), lookbehind: true, inside: className.inside,