1
- import type { Route } from " ./+types/home" ;
1
+ import type { Route } from ' ./+types/home' ;
2
2
import { useRef , useState } from 'react' ;
3
3
import { usePdf } from '@mikecousins/react-pdf' ;
4
4
import clsx from 'clsx' ;
5
- import { ArrowLeftCircleIcon , ArrowRightCircleIcon } from '@heroicons/react/24/solid' ;
5
+ import {
6
+ ArrowLeftCircleIcon ,
7
+ ArrowRightCircleIcon ,
8
+ } from '@heroicons/react/24/solid' ;
6
9
7
10
export function meta ( { } : Route . MetaArgs ) {
8
11
return [
9
- { title : "New React Router App" } ,
10
- { name : "description" , content : "Welcome to React Router!" } ,
12
+ { title : '@mikecousins/react-pdf' } ,
13
+ {
14
+ name : 'description' ,
15
+ content :
16
+ 'The simplest PDF rendering library for modern websites. @mikecousins/react-pdf is super lightweight and will embed a PDF in your website easily.' ,
17
+ } ,
11
18
] ;
12
19
}
13
20
@@ -51,7 +58,9 @@ export default function Home() {
51
58
< button
52
59
disabled = { previousDisabled }
53
60
onClick = { ( ) => setPage ( page - 1 ) }
54
- className = { clsx ( previousDisabled && 'text-gray-300' ) }
61
+ className = { clsx (
62
+ previousDisabled ? 'text-gray-300' : 'text-gray-900'
63
+ ) }
55
64
>
56
65
< ArrowLeftCircleIcon className = "h-12 w-12" />
57
66
</ button >
@@ -66,7 +75,9 @@ export default function Home() {
66
75
< button
67
76
disabled = { nextDisabled }
68
77
onClick = { ( ) => setPage ( page + 1 ) }
69
- className = { clsx ( nextDisabled && 'text-gray-300' ) }
78
+ className = { clsx (
79
+ nextDisabled ? 'text-gray-300' : 'text-gray-900'
80
+ ) }
70
81
>
71
82
< ArrowRightCircleIcon className = "h-12 w-12" />
72
83
</ button >
0 commit comments