Skip to content

Commit cbaa4c6

Browse files
committed
fix lint, rearrange files to avoid SSG issue
1 parent cc3c604 commit cbaa4c6

25 files changed

Lines changed: 33 additions & 25 deletions
File renamed without changes.

website/src/pages/Home/CallToAction/styles.module.css renamed to website/src/components/Home/CallToAction/styles.module.css

File renamed without changes.

website/src/pages/Home/Community/index.tsx renamed to website/src/components/Home/Community/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
*/
77

88
import React from 'react';
9+
910
import useBaseUrl from '@docusaurus/useBaseUrl';
1011
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
1112

12-
import Section from '../components/Section';
13-
import SectionTitle from '../components/SectionTitle';
13+
import Section from '../Section';
14+
import SectionTitle from '../SectionTitle';
1415

1516
import styles from './styles.module.css';
1617

File renamed without changes.

website/src/pages/Home/Framework/index.tsx renamed to website/src/components/Home/Framework/index.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77

88
import React from 'react';
99

10+
import useBaseUrl from '@docusaurus/useBaseUrl';
1011
import ThemedImage from '@theme/ThemedImage';
11-
import Section from '../components/Section';
12-
import SectionTitle from '../components/SectionTitle';
12+
13+
import Section from '../Section';
14+
import SectionTitle from '../SectionTitle';
1315

1416
import styles from './styles.module.css';
1517

@@ -32,8 +34,8 @@ function Framework() {
3234
<div className={styles.card}>
3335
<ThemedImage
3436
sources={{
35-
light: "/img/homepage/file-based-routing.png",
36-
dark: "/img/homepage/file-based-routing-dark.png",
37+
light: '/img/homepage/file-based-routing.png',
38+
dark: '/img/homepage/file-based-routing-dark.png',
3739
}}
3840
className={styles.cardImage}
3941
alt="File system with folders and files representing screens and navigation"
@@ -49,8 +51,8 @@ function Framework() {
4951
<div className={styles.card}>
5052
<ThemedImage
5153
sources={{
52-
light: "/img/homepage/libraries.png",
53-
dark: "/img/homepage/libraries-dark.png",
54+
light: useBaseUrl('/img/homepage/libraries.png'),
55+
dark: useBaseUrl('/img/homepage/libraries-dark.png'),
5456
}}
5557
alt="Grid of icons representing libraries, SDKs, and native code"
5658
className={styles.cardImage}
@@ -68,8 +70,8 @@ function Framework() {
6870
<div className={styles.card}>
6971
<ThemedImage
7072
sources={{
71-
light: "/img/homepage/tools.png",
72-
dark: "/img/homepage/tools-dark.png",
73+
light: useBaseUrl('/img/homepage/tools.png'),
74+
dark: useBaseUrl('/img/homepage/tools-dark.png'),
7375
}}
7476
className={styles.cardImage}
7577
alt="List of developer tool toggles for debugging, performance, and more"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

website/src/pages/Home/Hero/index.tsx renamed to website/src/components/Home/Hero/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import React from 'react';
99
import GitHubButton from 'react-github-btn';
1010

1111
import Logo from '../Logo';
12-
1312
import GridBackground from './GridBackground';
1413
import FloorBackground from './FloorBackground';
1514
import Devices from './Devices';
15+
1616
import styles from './styles.module.css';
1717

1818
function Hero() {

0 commit comments

Comments
 (0)