10000 docs: fix links · coder/coder@815c71d · GitHub
[go: up one dir, main page]

Skip to content

Commit 815c71d

Browse files
committed
docs: fix links
1 parent 3b058df commit 815c71d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

site/src/components/Spinner/Spinner.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* @file This component was inspired by Radix's Spinner component. The animation
33
* settings were developed using Vercel's v0.
44
*
5-
* @see {@link https://www.radix-ui.com/themes/docs/components/spinner}
6-
* @see {@link https://v0.dev/}
5+
* {@link https://www.radix-ui.com/themes/docs/components/spinner}
6+
* {@link https://v0.dev/}
77
*/
88

99
import isChromatic from "chromatic/isChromatic";
@@ -50,7 +50,9 @@ type SpinnerProps = Readonly<
5050
* If you do need reset all the state after a loading transition
5151
* and you can't unmount the component without creating invalid
5252
* HTML, use a render key to reset the state.
53-
* @see {@link https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes}
53+
*
54+
* ---
55+
* {@link https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes}
5456
*/
5557
unmountChildrenWhileLoading?: boolean;
5658

@@ -89,9 +91,9 @@ const animationSettings: CSSProperties = isChromatic()
8991

9092
export const Spinner: FC<SpinnerProps> = ({
9193
className,
92-
size,
9394
loading,
9495
children,
96+
size = "lg",
9597
spinnerDelayMs = 0,
9698
unmountChildrenWhileLoading = false,
9799
...delegatedProps
@@ -109,7 +111,7 @@ export const Spinner: FC<SpinnerProps> = ({
109111
* Doing a bunch of mid-render state syncs to minimize risks of UI tearing
110112
* during re-renders. It's ugly, but it's what the React team officially
111113
* recommends.
112-
* @see {@link https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes}
114+
* {@link https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes}
113115
*/
114116
const [delayLapsed, setDelayLapsed] = useState(safeDelay === 0);
115117
const canResetLapseOnRerender = delayLapsed && !loading;

0 commit comments

Comments
 (0)
0