diff --git a/next-env.d.ts b/next-env.d.ts index 52e831b4..254b73c1 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/src/components/Layout/HomeContent.js b/src/components/Layout/HomeContent.js index 964dd238..f9b785db 100644 --- a/src/components/Layout/HomeContent.js +++ b/src/components/Layout/HomeContent.js @@ -509,7 +509,7 @@ export function HomeContent() {
- logo by @sawaratsuki1004 - {alt} {children}
-
{image.speakers.map((src, i) => ( -
- {alt} (
- {info.alt} - ); + return {alt}; } export const MDXComponents = { diff --git a/src/components/PageHeading.tsx b/src/components/PageHeading.tsx index 91304cc8..ba4b413a 100644 --- a/src/components/PageHeading.tsx +++ b/src/components/PageHeading.tsx @@ -41,13 +41,20 @@ function CopyAsMarkdownButton() { return () => clearTimeout(timer); }, [copied]); - async function handleCopy() { + async function fetchPageBlob() { const cleanPath = asPath.split(/[?#]/)[0]; + const res = await fetch(cleanPath + '.md'); + if (!res.ok) throw new Error('Failed to fetch'); + const text = await res.text(); + return new Blob([text], {type: 'text/plain'}); + } + + async function handleCopy() { try { - const res = await fetch(cleanPath + '.md'); - if (!res.ok) return; - const text = await res.text(); - await navigator.clipboard.writeText(text); + await navigator.clipboard.write([ + // Don't wait for the blob, or Safari will refuse clipboard access + new ClipboardItem({'text/plain': fetchPageBlob()}), + ]); setCopied(true); } catch { // Silently fail @@ -76,7 +83,6 @@ function PageHeading({ tags = [], breadcrumbs, }: PageHeadingProps) { - console.log('version', version); return (
diff --git a/src/content/learn/thinking-in-react.md b/src/content/learn/thinking-in-react.md index ae4ddd9f..2cd9ff90 100644 --- a/src/content/learn/thinking-in-react.md +++ b/src/content/learn/thinking-in-react.md @@ -50,6 +50,7 @@ Kuna vijenzi vitano kwenye skrini hii: + 1. `FilterableProductTable` (kijivu) ina programu nzima. 2. `SearchBar` (bluu) inapokea ingizo la mtumiaji. 3. `ProductTable` (lavender) huonyesha na kuchuja orodha kulingana na ingizo la mtumiaji. diff --git a/src/sidebarReference.json b/src/sidebarReference.json index 8121a735..622fa687 100644 --- a/src/sidebarReference.json +++ b/src/sidebarReference.json @@ -575,4 +575,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 1a4de1a4..7566815e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3188,22 +3188,15 @@ emoji-regex@^9.2.2: resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz" integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== -<<<<<<< HEAD -encodeurl@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" - integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== -======= emojis-list@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== ->>>>>>> 427f24d694674be458f0fe7cb97ab1c8fe736586 +encodeurl@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" + integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== enquirer@^2.3.5: version "2.3.6" @@ -3637,6 +3630,7 @@ eslint-plugin-jsx-a11y@^6.4.1: "eslint-plugin-local-rules@link:eslint-local-rules": version "0.0.0" + uid "" eslint-plugin-react-compiler@^19.0.0-beta-e552027-20250112: version "19.0.0-beta-e552027-20250112"