Skip to content

Commit 46b16a1

Browse files
committed
add s to reactgg links
1 parent fa7f8bf commit 46b16a1

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

usehooks.com/src/components/HookDescription.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ const { name } = Astro.props;
1616
class="logo"
1717
alt="React.gg"
1818
/>
19-
<p>Want to learn how to build {name} yourself? Check out <a href="https://react.gg">react.gg</a> – the interactive way to master modern React.</p>
19+
<p>
20+
Want to learn how to build {name} yourself? Check out <a
21+
href="https://react.gg?s=usehooks">react.gg</a
22+
> – the interactive way to master modern React.
23+
</p>
2024
<Button
2125
text="Learn More"
2226
size="small"
23-
href="https://react.gg"
27+
href="https://react.gg?s=usehooks"
2428
type="link"
2529
color="green"
2630
class="get-started"
Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
import styles from './Callout.module.css';
1+
import styles from "./Callout.module.css";
22

33
type Props = {
4-
image: string
5-
imageWidth: string
6-
imageHeight: string
7-
imageAlt: string
8-
pitch: string
9-
}
4+
image: string;
5+
imageWidth: string;
6+
imageHeight: string;
7+
imageAlt: string;
8+
pitch: string;
9+
};
1010

11-
export default function Callout({ image, imageWidth, imageHeight, imageAlt, pitch }) {
11+
export default function Callout({
12+
image,
13+
imageWidth,
14+
imageHeight,
15+
imageAlt,
16+
pitch,
17+
}) {
1218
return (
1319
<li className={styles.callout}>
14-
<a href="https://react.gg" className="logo image">
20+
<a href="https://react.gg?s=usehooks" className="logo image">
1521
<img
16-
src={ `/img/${image}.svg` }
22+
src={`/img/${image}.svg`}
1723
width={imageWidth}
1824
height={imageHeight}
1925
className={image}
@@ -29,5 +35,5 @@ export default function Callout({ image, imageWidth, imageHeight, imageAlt, pitc
2935
<p>{pitch}</p>
3036
</a>
3137
</li>
32-
)
33-
}
38+
);
39+
}

usehooks.com/src/sections/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<a href="https://github.com/uidotdev/usehooks">View the Repo</a>
1111
<a href="https://bytes.dev">JavaScript Newsletter</a>
1212
<a href="https://reactnewsletter.com">React Newsletter</a>
13-
<a href="https://react.gg">Learn React</a>
13+
<a href="https://react.gg?s=usehooks">Learn React</a>
1414
<a href="https://query.gg">Learn React Query</a>
1515
</nav>
1616
</footer>

0 commit comments

Comments
 (0)