|
1 |
| -import { Link } from '@tanstack/react-router' |
2 | 1 | import agGridDarkSvg from '~/images/ag-grid-dark.svg'
|
3 | 2 | import agGridLightSvg from '~/images/ag-grid-light.svg'
|
4 | 3 | import nozzleImage from '~/images/nozzle.png'
|
@@ -223,15 +222,16 @@ const agGrid = (() => {
|
223 | 222 | for the entire JS/TS ecosystem. Whether it's a lightweight table or a
|
224 | 223 | complex datagrid, we've we've got you covered.
|
225 | 224 | </div>
|
226 |
| - <Link |
227 |
| - to="/blog/$" |
228 |
| - params={{ |
229 |
| - _splat: 'ag-grid-partnership', |
| 225 | + {/* Has to be button for separate link than parent anchor to be valid HTML */} |
| 226 | + <button |
| 227 | + type="button" |
| 228 | + onClick={() => { |
| 229 | + window.location.href = '/blog/ag-grid-partnership' |
230 | 230 | }}
|
231 | 231 | className="text-blue-500 uppercase font-black text-sm"
|
232 | 232 | >
|
233 | 233 | Learn More
|
234 |
| - </Link> |
| 234 | + </button> |
235 | 235 | </>
|
236 | 236 | ),
|
237 | 237 | }
|
@@ -365,25 +365,32 @@ const uiDev = (() => {
|
365 | 365 | TanStack's priority is to make its users productive, efficient and
|
366 | 366 | knowledgeable about web dev. To help us on this quest, we've partnered
|
367 | 367 | with{' '}
|
368 |
| - <a |
369 |
| - target="_blank" |
370 |
| - className="text-blue-500 underline" |
371 |
| - href="https://ui.dev/?utm_source=tanstack&utm_campaign=tanstack" |
372 |
| - rel="noreferrer" |
| 368 | + {/* Has to be button for separate link than parent anchor to be valid HTML */} |
| 369 | + <button |
| 370 | + type="button" |
| 371 | + className="text-blue-500 underline cursor-pointer p-0 m-0 bg-transparent border-none inline" |
| 372 | + onClick={() => |
| 373 | + window.open( |
| 374 | + 'https://ui.dev/?utm_source=tanstack&utm_campaign=tanstack', |
| 375 | + '_blank', |
| 376 | + 'noopener,noreferrer' |
| 377 | + ) |
| 378 | + } |
| 379 | + tabIndex={0} |
373 | 380 | >
|
374 | 381 | ui.dev
|
375 |
| - </a>{' '} |
| 382 | + </button>{' '} |
376 | 383 | to <strong>provide best-in-class education</strong> about TanStack
|
377 | 384 | products. It doesn't stop at TanStack though, with their sister
|
378 | 385 | product{' '}
|
379 |
| - <a |
380 |
| - target="_blank" |
381 |
| - className="text-blue-500 underline" |
382 |
| - href={href} |
383 |
| - rel="noreferrer" |
| 386 | + <button |
| 387 | + type="button" |
| 388 | + className="text-blue-500 underline cursor-pointer p-0 m-0 bg-transparent border-none inline" |
| 389 | + onClick={() => window.open(href, '_blank', 'noopener,noreferrer')} |
| 390 | + tabIndex={0} |
384 | 391 | >
|
385 | 392 | Bytes.dev
|
386 |
| - </a>{' '} |
| 393 | + </button>{' '} |
387 | 394 | as our official newsletter partner, you'll be able to{' '}
|
388 | 395 | <strong>stay up to date with the latest and greatest</strong> in the
|
389 | 396 | web dev world regardless.
|
|
0 commit comments