Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: update key prop

Isaiah Hamiltonbe8ab7037863
diff --git a/apps/www/components/Blog/BlogListItem.tsx b/apps/www/components/Blog/BlogListItem.tsx
index 0107a32578b..bc77f543bf7 100644
--- a/apps/www/components/Blog/BlogListItem.tsx
+++ b/apps/www/components/Blog/BlogListItem.tsx
@@ -51,9 +51,9 @@ const BlogListItem = ({ post }: Props) => {
<p className="text-scale-1100 max-w-sm text-base">{post.description}</p>
</div>
<div className="flex items-center -space-x-2">
- {author.map((author: any) => {
+ {author.map((author: any, i: number) => {
return (
- <div className="dark:ring-scale-200 w-10 rounded-full ring-2 ring-white">
+ <div className="dark:ring-scale-200 w-10 rounded-full ring-2 ring-white" key={i}>
{author.author_image_url && (
<Image
src={author.author_image_url}
diff --git a/apps/www/components/MadeForDevelopers/CodeExamples.tsx b/apps/www/components/MadeForDevelopers/CodeExamples.tsx
index 198539e744a..cb974de41a7 100644
--- a/apps/www/components/MadeForDevelopers/CodeExamples.tsx
+++ b/apps/www/components/MadeForDevelopers/CodeExamples.tsx
@@ -117,9 +117,9 @@ const CodeExamples = () => {
activeId={example}
type="underlined"
>
- {Object.values(exampleList).map((x) => {
+ {Object.values(exampleList).map((x, i) => {
return (
- <Tabs.Panel id={x.id} label={x.name}>
+ <Tabs.Panel id={x.id} label={x.name} key={i}>
<span></span>
</Tabs.Panel>
)
diff --git a/apps/www/components/Partners/BecomeAPartners.tsx b/apps/www/components/Partners/BecomeAPartners.tsx
index e3a5b102e1e..e4a80985b45 100644
--- a/apps/www/components/Partners/BecomeAPartners.tsx
+++ b/apps/www/components/Partners/BecomeAPartners.tsx
@@ -172,8 +172,8 @@ export default function BecomeAPartner({ supabase }: { supabase: SupabaseClient
name="country"
layout="vertical"
>
- {countries.map(({ code, name }) => (
- <Select.Option value={code}>{name}</Select.Option>
+ {countries.map(({ code, name }: any, i: number) => (
+ <Select.Option key={i} value={code}>{name}</Select.Option>
))}
</Select>
</div>
diff --git a/apps/www/components/PricingTableRow.tsx b/apps/www/components/PricingTableRow.tsx
index 91ca9bae8dd..b9c26efe71d 100644
--- a/apps/www/components/PricingTableRow.tsx
+++ b/apps/www/components/PricingTableRow.tsx
@@ -67,9 +67,9 @@ export const PricingTableRowDesktop = (props: any) => {
<td className="bg-scale-50 dark:bg-scale-300 px-6 py-5"></td>
</tr>
- {category.features.map((feat: any) => {
+ {category.features.map((feat: any, i: number) => {
return (
- <tr className="divide-scale-600 dark:divide-scale-400 divide-x">
+ <tr className="divide-scale-600 dark:divide-scale-400 divide-x" key={i}>
<th
className="text-scale-1200 flex items-center px-6 py-3 text-left text-sm font-normal dark:text-white"
scope="row"
diff --git a/apps/www/pages/auth/Auth.tsx b/apps/www/pages/auth/Auth.tsx
index 1da0bc75a85..b2c71f8d3ce 100644
--- a/apps/www/pages/auth/Auth.tsx
+++ b/apps/www/pages/auth/Auth.tsx
@@ -112,9 +112,9 @@ function AuthPage() {
/>
</svg>
</div>
- {AuthProviders.map((auth) => {
+ {AuthProviders.map((auth, i) => {
return (
- <div className="flex w-fit items-center">
+ <div className="flex w-fit items-center" key={i}>
<Image
src={`${basePath}/images/product/auth/${auth.name}-icon.svg`}
alt={`${auth.name} auth login icon`}
diff --git a/apps/www/pages/blog.tsx b/apps/www/pages/blog.tsx
index 41184b1791d..4c224dc864d 100644
--- a/apps/www/pages/blog.tsx
+++ b/apps/www/pages/blog.tsx
@@ -167,9 +167,9 @@ function FeaturedThumb(blog: PostTypes) {
</div>
<div className="grid w-max grid-flow-col grid-rows-4 gap-4">
- {author.map((author: any) => {
+ {author.map((author: any, i: number) => {
return (
- <div className="flex items-center space-x-3">
+ <div className="flex items-center space-x-3" key={i}>
{author.author_image_url && (
<div className="relative h-10 w-10 overflow-auto">
<Image
diff --git a/apps/www/pages/blog/[slug].tsx b/apps/www/pages/blog/[slug].tsx
index dfb654f7599..56fdac81645 100644
--- a/apps/www/pages/blog/[slug].tsx
+++ b/apps/www/pages/blog/[slug].tsx
@@ -238,9 +238,9 @@ function BlogPostPage(props: any) {
<p>{generateReadingTime(props.blog.content.renderedOutput)}</p>
</div>
<div className="flex flex-col gap-3 pt-6 md:flex-row md:gap-0 lg:gap-3">
- {author.map((author: any) => {
+ {author.map((author: any, i: number) => {
return (
- <div className="mr-4 w-max">
+ <div className="mr-4 w-max" key={i}>
<Link href={author.author_url}>
<a className="cursor-pointer">
<div className="flex items-center gap-3">
@@ -348,8 +348,8 @@ function BlogPostPage(props: any) {
<p className="text-scale-1200 text-sm">Related articles</p>
</div>
<div className="space-y-3">
- {props.relatedPosts.map((post: any) => (
- <Link href={`${post.path}`} as={`${post.path}`}>
+ {props.relatedPosts.map((post: any, i: number) => (
+ <Link href={`${post.path}`} as={`${post.path}`} key={i}>
<div>
<p className="cursor-pointer">
<div className="flex gap-2">
diff --git a/apps/www/pages/blog/tags/[tag].tsx b/apps/www/pages/blog/tags/[tag].tsx
index 0978b1dfa80..0931f220ada 100644
--- a/apps/www/pages/blog/tags/[tag].tsx
+++ b/apps/www/pages/blog/tags/[tag].tsx
@@ -45,8 +45,8 @@ function TagBlogsPage(props: Props) {
</div>
<ol className="grid grid-cols-12 gap-8 py-16 lg:gap-16">
{blogs.map((blog: PostTypes, idx: number) => (
- <div className="col-span-12 mb-16 md:col-span-12 lg:col-span-6 xl:col-span-4">
- <BlogListItem post={blog} key={idx} />
+ <div className="col-span-12 mb-16 md:col-span-12 lg:col-span-6 xl:col-span-4" key={idx}>
+ <BlogListItem post={blog} />
</div>
))}
</ol>
diff --git a/apps/www/pages/edge-functions/edge-functions.tsx b/apps/www/pages/edge-functions/edge-functions.tsx
index 8177402705c..c757b4815f8 100644
--- a/apps/www/pages/edge-functions/edge-functions.tsx
+++ b/apps/www/pages/edge-functions/edge-functions.tsx
@@ -139,9 +139,9 @@ function Database() {
<SectionContainer>
<div className="col-span-12 mb-10 space-y-12 lg:col-span-3 lg:mb-0 ">
<div className="grid gap-8 rounded md:grid-cols-2 xl:grid-cols-4">
- {featureBlocks.map((item) => {
+ {featureBlocks.map((item, i) => {
return (
- <div className="bg-scale-100 dark:bg-scale-300 group flex flex-col gap-4 rounded border px-8 py-6">
+ <div className="bg-scale-100 dark:bg-scale-300 group flex flex-col gap-4 rounded border px-8 py-6" key={i}>
<div className="bg-scale-300 dark:bg-scale-500 text-scale-1200 group-hover:text-brand-900 flex h-12 w-12 items-center justify-center rounded-md border transition-all group-hover:scale-105">
{item.icon ? item.icon : <IconCode strokeWidth={2} />}
</div>
diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsx
index 2cdf0735761..bdd62e6518a 100644
--- a/apps/www/pages/pricing/index.tsx
+++ b/apps/www/pages/pricing/index.tsx
@@ -653,9 +653,8 @@ export default function IndexPage() {
>
{pricingFaq.map((faq, i) => {
return (
- <div className="border-b pb-3">
+ <div className="border-b pb-3" key={i}>
<Accordion.Item
- key={i}
header={<span className="text-scale-1200">{faq.question}</span>}
id={`faq--${i.toString()}`}
>