Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit c038a69

Browse files
committed
fixed lint error in template
1 parent e20fd08 commit c038a69

File tree

2 files changed

+60
-72
lines changed
  • packages
    • cra-template-agile-typescript/template/src/pages/Home
    • cra-template-agile/template/src/pages/Home

2 files changed

+60
-72
lines changed

packages/cra-template-agile-typescript/template/src/pages/Home/index.tsx

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,40 @@ import Stopwatch from '../../components/Stopwatch';
33

44
import styles from './Home.module.css';
55

6-
const Home: React.FC = () => {
7-
return (
8-
<div className={styles.container}>
9-
{/* Header */}
10-
<h1 className={styles.title}>
11-
Welcome to <a href="https://agile-ts.org">AgileTs!</a>
12-
</h1>
13-
<h3 className={styles.subtitle}>
14-
in a <a href="https://reactjs.org">React</a> application
15-
</h3>
6+
const Home: React.FC = () => (
7+
<div className={styles.container}>
8+
{/* Header */}
9+
<h1 className={styles.title}>
10+
Welcome to <a href="https://agile-ts.org">AgileTs!</a>
11+
</h1>
12+
<h3 className={styles.subtitle}>
13+
in a <a href="https://reactjs.org">React</a> application
14+
</h3>
1615

17-
<div className={styles.divider} />
16+
<div className={styles.divider} />
1817

19-
{/* Stopwatch */}
20-
<p className={styles.getStartedText}>
21-
Get started by editing{' '}
22-
<code className={styles.code}>core/index.ts</code>
23-
</p>
24-
<Stopwatch />
18+
{/* Stopwatch */}
19+
<p className={styles.getStartedText}>
20+
Get started by editing <code className={styles.code}>core/index.ts</code>
21+
</p>
22+
<Stopwatch />
2523

26-
{/* Cards */}
27-
<div className={styles.cardsContainer}>
28-
<a
29-
href="https://agile-ts.org/docs/introduction/"
30-
className={styles.card}
31-
>
32-
<h2>Documentation &rarr;</h2>
33-
<p>Find in-depth information about AgileTs features and API.</p>
34-
</a>
24+
{/* Cards */}
25+
<div className={styles.cardsContainer}>
26+
<a href="https://agile-ts.org/docs/introduction/" className={styles.card}>
27+
<h2>Documentation &rarr;</h2>
28+
<p>Find in-depth information about AgileTs features and API.</p>
29+
</a>
3530

36-
<a
37-
href="https://github.com/agile-ts/agile/discussions"
38-
className={styles.card}
39-
>
40-
<h2>Help &rarr;</h2>
41-
<p>Ask your questions and get help by the community.</p>
42-
</a>
43-
</div>
31+
<a
32+
href="https://github.com/agile-ts/agile/discussions"
33+
className={styles.card}
34+
>
35+
<h2>Help &rarr;</h2>
36+
<p>Ask your questions and get help by the community.</p>
37+
</a>
4438
</div>
45-
);
46-
};
39+
</div>
40+
);
4741

4842
export default Home;

packages/cra-template-agile/template/src/pages/Home/index.jsx

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,40 @@ import Stopwatch from '../../components/Stopwatch';
33

44
import styles from './Home.module.css';
55

6-
function Home() {
7-
return (
8-
<div className={styles.container}>
9-
{/* Header */}
10-
<h1 className={styles.title}>
11-
Welcome to <a href="https://agile-ts.org">AgileTs!</a>
12-
</h1>
13-
<h3 className={styles.subtitle}>
14-
in a <a href="https://reactjs.org">React</a> application
15-
</h3>
6+
const Home = () => (
7+
<div className={styles.container}>
8+
{/* Header */}
9+
<h1 className={styles.title}>
10+
Welcome to <a href="https://agile-ts.org">AgileTs!</a>
11+
</h1>
12+
<h3 className={styles.subtitle}>
13+
in a <a href="https://reactjs.org">React</a> application
14+
</h3>
1615

17-
<div className={styles.divider} />
16+
<div className={styles.divider} />
1817

19-
{/* Stopwatch */}
20-
<p className={styles.getStartedText}>
21-
Get started by editing{' '}
22-
<code className={styles.code}>core/index.js</code>
23-
</p>
24-
<Stopwatch />
18+
{/* Stopwatch */}
19+
<p className={styles.getStartedText}>
20+
Get started by editing <code className={styles.code}>core/index.ts</code>
21+
</p>
22+
<Stopwatch />
2523

26-
{/* Cards */}
27-
<div className={styles.cardsContainer}>
28-
<a
29-
href="https://agile-ts.org/docs/introduction/"
30-
className={styles.card}
31-
>
32-
<h2>Documentation &rarr;</h2>
33-
<p>Find in-depth information about AgileTs features and API.</p>
34-
</a>
24+
{/* Cards */}
25+
<div className={styles.cardsContainer}>
26+
<a href="https://agile-ts.org/docs/introduction/" className={styles.card}>
27+
<h2>Documentation &rarr;</h2>
28+
<p>Find in-depth information about AgileTs features and API.</p>
29+
</a>
3530

36-
<a
37-
href="https://github.com/agile-ts/agile/discussions"
38-
className={styles.card}
39-
>
40-
<h2>Help &rarr;</h2>
41-
<p>Ask your questions and get help by the community.</p>
42-
</a>
43-
</div>
31+
<a
32+
href="https://github.com/agile-ts/agile/discussions"
33+
className={styles.card}
34+
>
35+
<h2>Help &rarr;</h2>
36+
<p>Ask your questions and get help by the community.</p>
37+
</a>
4438
</div>
45-
);
46-
}
39+
</div>
40+
);
4741

4842
export default Home;

0 commit comments

Comments
 (0)