@@ -25,7 +25,7 @@ function AddMessageForm({ onMessagePost }: { onMessagePost: () => void }) {
25
25
const userName = session ?. user ?. name ;
26
26
if ( ! userName ) {
27
27
return (
28
- < div className = "flex justify-between w-full px-3 py-2 text-lg text-gray-200 bg-gray-800 rounded " >
28
+ < div className = "flex w-full justify-between rounded bg-gray-800 px-3 py-2 text-lg text-gray-200" >
29
29
< p className = "font-bold" >
30
30
You have to{ ' ' }
31
31
< button
@@ -39,7 +39,7 @@ function AddMessageForm({ onMessagePost }: { onMessagePost: () => void }) {
39
39
< button
40
40
onClick = { ( ) => signIn ( ) }
41
41
data-testid = "signin"
42
- className = "h-full px-4 bg-indigo-500 rounded "
42
+ className = "h-full rounded bg-indigo-500 px-4 "
43
43
>
44
44
Sign In
45
45
</ button >
@@ -60,7 +60,7 @@ function AddMessageForm({ onMessagePost }: { onMessagePost: () => void }) {
60
60
} }
61
61
>
62
62
< fieldset disabled = { addPost . isLoading } className = "min-w-0" >
63
- < div className = "flex items-end w-full px-3 py-2 text-lg text-gray-200 bg-gray-500 rounded " >
63
+ < div className = "flex w-full items-end rounded bg-gray-500 px-3 py-2 text-lg text-gray-200" >
64
64
< textarea
65
65
value = { message }
66
66
onChange = { ( e ) => setMessage ( e . target . value ) }
@@ -89,7 +89,7 @@ function AddMessageForm({ onMessagePost }: { onMessagePost: () => void }) {
89
89
} }
90
90
/>
91
91
< div >
92
- < button type = "submit" className = "px-4 py-1 bg-indigo-500 rounded " >
92
+ < button type = "submit" className = "rounded bg-indigo-500 px-4 py-1 " >
93
93
Submit
94
94
</ button >
95
95
</ div >
@@ -185,10 +185,10 @@ export default function IndexPage() {
185
185
< title > Prisma Starter</ title >
186
186
< link rel = "icon" href = "/favicon.ico" />
187
187
</ Head >
188
- < div className = "flex flex-col h-screen md:flex-row" >
189
- < section className = "flex flex-col w-full bg-gray-800 md:w-72" >
188
+ < div className = "flex h-screen flex-col md:flex-row" >
189
+ < section className = "flex w-full flex-col bg-gray-800 md:w-72" >
190
190
< div className = "flex-1 overflow-y-hidden" >
191
- < div className = "flex flex-col h-full divide-y divide-gray-700" >
191
+ < div className = "flex h-full flex-col divide-y divide-gray-700" >
192
192
< header className = "p-4" >
193
193
< h1 className = "text-3xl font-bold text-gray-50" >
194
194
tRPC WebSocket starter
@@ -206,10 +206,10 @@ export default function IndexPage() {
206
206
</ a >
207
207
</ p >
208
208
</ header >
209
- < div className = "flex-1 hidden p-4 space-y-6 overflow-y-auto text-gray-400 md:block" >
209
+ < div className = "hidden flex-1 space-y-6 overflow-y-auto p-4 text-gray-400 md:block" >
210
210
< article className = "space-y-2" >
211
211
< h2 className = "text-lg text-gray-200" > Introduction</ h2 >
212
- < ul className = "space-y-2 list-disc list-inside " >
212
+ < ul className = "list-inside list-disc space-y-2 " >
213
213
< li > Open inspector and head to Network tab</ li >
214
214
< li > All client requests are handled through WebSockets</ li >
215
215
< li >
@@ -242,16 +242,16 @@ export default function IndexPage() {
242
242
</ div >
243
243
</ div >
244
244
</ div >
245
- < div className = "flex-shrink-0 hidden h-16 md:block" > </ div >
245
+ < div className = "hidden h-16 shrink-0 md:block" > </ div >
246
246
</ section >
247
247
< div className = "flex-1 overflow-y-hidden md:h-screen" >
248
- < section className = "flex flex-col justify-end h-full p-4 space-y-4 bg-gray-700" >
248
+ < section className = "flex h-full flex-col justify-end space-y-4 bg-gray-700 p-4 " >
249
249
< div className = "space-y-4 overflow-y-auto" >
250
250
< button
251
251
data-testid = "loadMore"
252
252
onClick = { ( ) => fetchPreviousPage ( ) }
253
253
disabled = { ! hasPreviousPage || isFetchingPreviousPage }
254
- className = "px-4 py-2 text-white bg-indigo-500 rounded disabled:opacity-40"
254
+ className = "rounded bg-indigo-500 px-4 py-2 text-white disabled:opacity-40"
255
255
>
256
256
{ isFetchingPreviousPage
257
257
? 'Loading more...'
@@ -263,7 +263,7 @@ export default function IndexPage() {
263
263
{ messages ?. map ( ( item ) => (
264
264
< article key = { item . id } className = " text-gray-50" >
265
265
< header className = "flex space-x-2 text-sm" >
266
- < h3 className = "text-md " >
266
+ < h3 className = "text-base " >
267
267
{ item . source === 'RAW' ? (
268
268
item . name
269
269
) : (
@@ -283,7 +283,7 @@ export default function IndexPage() {
283
283
} ) . format ( item . createdAt ) }
284
284
</ span >
285
285
</ header >
286
- < p className = "text-xl leading-tight whitespace-pre-line " >
286
+ < p className = "whitespace-pre-line text-xl leading-tight" >
287
287
{ item . text }
288
288
</ p >
289
289
</ article >
0 commit comments