Skip to content

Commit 8061be8

Browse files
committed
Fix ESLint issues in existing components
1 parent d772f2b commit 8061be8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/HomepageFeatures/index.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import clsx from 'clsx';
33
import Heading from '@theme/Heading';
44
import styles from './styles.module.css';
55

6+
// Import SVG images
7+
import MountainSvg from '@site/static/img/undraw_docusaurus_mountain.svg';
8+
import TreeSvg from '@site/static/img/undraw_docusaurus_tree.svg';
9+
import ReactSvg from '@site/static/img/undraw_docusaurus_react.svg';
10+
611
type FeatureItem = {
712
title: string;
813
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
@@ -12,7 +17,7 @@ type FeatureItem = {
1217
const FeatureList: FeatureItem[] = [
1318
{
1419
title: 'AI-Powered Coding Assistant',
15-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
20+
Svg: MountainSvg,
1621
description: (
1722
<>
1823
MyCoder leverages advanced AI models to understand your requirements
@@ -22,7 +27,7 @@ const FeatureList: FeatureItem[] = [
2227
},
2328
{
2429
title: 'Context-Aware Responses',
25-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
30+
Svg: TreeSvg,
2631
description: (
2732
<>
2833
MyCoder understands your project structure and existing code, providing
@@ -32,7 +37,7 @@ const FeatureList: FeatureItem[] = [
3237
},
3338
{
3439
title: 'Built for Developers',
35-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
40+
Svg: ReactSvg,
3641
description: (
3742
<>
3843
Designed with developer workflows in mind, MyCoder integrates with your

src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function HomepageQuickStart() {
4545
# Install MyCoder globally<br />
4646
npm install -g mycoder<br /><br />
4747
# Use MyCoder with a prompt<br />
48-
mycoder "Create a React component that displays a counter"
48+
mycoder &quot;Create a React component that displays a counter&quot;
4949
</code>
5050
</pre>
5151
</div>

0 commit comments

Comments
 (0)