Skip to content

Commit a1a02bc

Browse files
committed
Fix linting
1 parent 25bc0fc commit a1a02bc

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

website/src/components/landing/landing-banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from 'react';
2-
import { NFLinkButton } from './nf-link-button';
3-
import { LandingDivider } from './landing-divider';
1+
import React from "react";
2+
import { NFLinkButton } from "./nf-link-button";
3+
import { LandingDivider } from "./landing-divider";
44

55
export const LandingBanner = ({
66
body,

website/src/components/landing/landing-divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React from "react";
22

33
export const LandingDivider = () => (
44
<div className="mt-8 h-px bg-grayscale-300" />

website/src/components/landing/landing-features.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import { LandingDivider } from './landing-divider';
1+
import React from "react";
2+
import { LandingDivider } from "./landing-divider";
33

44
export const LandingFeatures = ({
55
heading,
@@ -15,7 +15,10 @@ export const LandingFeatures = ({
1515
<h2 className="my-8 text-4xl font-semibold">{heading}</h2>
1616
<ul className="grid grid-cols-3 items-start content-start justify-items-start justify-between gap-12 list-none pl-0">
1717
{list.map(({ alt, body, imgSrc, title }) => (
18-
<li className="col-span-3 md:col-span-1 flex flex-col items-center text-center">
18+
<li
19+
className="col-span-3 md:col-span-1 flex flex-col items-center text-center"
20+
key={alt}
21+
>
1922
<img src={imgSrc} alt={alt} className="max-h-72" />
2023
<span className="mt-8 text-2xl font-semibold">{title}</span>
2124
<span className="mt-2 text-lg leading-8 mx-3">{body}</span>

website/src/components/landing/landing-logos.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
2-
import { LandingDivider } from './landing-divider';
1+
import React from "react";
2+
import { LandingDivider } from "./landing-divider";
33

44
export const LandingLogos = ({
55
body,
@@ -20,7 +20,7 @@ export const LandingLogos = ({
2020
<p className="text-lg max-w-prose">{body}</p>
2121
<ul className="grid grid-cols-4 items-center content-start justify-items-start gap-8 list-none pl-0">
2222
{list.map(({ imgSrc, alt }) => (
23-
<li className="col-span-1 ">
23+
<li className="col-span-1" key={alt}>
2424
<img src={imgSrc} alt={alt} />
2525
</li>
2626
))}

website/src/components/landing/nf-link-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import React from "react";
22

33
interface ButtonProps {
44
children: ChildNode | React.ReactNode;

website/src/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from "react";
2+
3+
// eslint-disable-next-line import/no-unresolved
24
import Layout from "@theme/Layout";
35

46
import responsiveFeature from "../../static/img/feature-1.png";
57
import nativeFeature from "../../static/img/feature-2.png";
68
import styleFeature from "../../static/img/feature-3.png";
7-
import { LandingBanner } from "../components/landing/landing-banner";
89
import { LandingHero } from "../components/landing/landing-hero";
910
import { LandingFeaturedProjects } from "../components/landing/landing-featured-projects";
1011
import { LandingFeatures } from "../components/landing/landing-features";

0 commit comments

Comments
 (0)