@@ -2,11 +2,10 @@ import { Fragment, useEffect, useState } from "react";
2
2
3
3
import { Dialog , Transition } from "@headlessui/react" ;
4
4
import { Bars3Icon , XCircleIcon , XMarkIcon } from "@heroicons/react/24/outline" ;
5
- import { cssBundleHref } from "@remix-run/css-bundle" ;
6
5
import type {
7
6
LinksFunction ,
8
- LoaderArgs ,
9
- V2_MetaFunction as MetaFunction ,
7
+ LoaderFunctionArgs ,
8
+ MetaFunction ,
10
9
} from "@remix-run/node" ;
11
10
import {
12
11
Form ,
@@ -31,22 +30,16 @@ import { getUserTier } from "./modules/user";
31
30
import tailwindStylesheetUrl from "./styles/tailwind.css" ;
32
31
33
32
export const links : LinksFunction = ( ) => [
34
- { rel : "preload" , href : tailwindStylesheetUrl , as : "style" } ,
35
- { rel : "stylesheet" , href : tailwindStylesheetUrl , as : "style" } ,
36
- ...( cssBundleHref
37
- ? [
38
- { rel : "preload" , href : cssBundleHref , as : "style" } ,
39
- { rel : "stylesheet" , href : cssBundleHref } ,
40
- ]
41
- : [ ] ) ,
33
+ { rel : "stylesheet preload prefetch" , href : tailwindStylesheetUrl , as : "style" } ,
34
+
42
35
] ;
43
36
44
37
export const meta : MetaFunction = ( ) => [
45
38
{ title : "Notee" } ,
46
39
{ name : "description" , content : "Notee App" } ,
47
40
] ;
48
41
49
- export async function loader ( { request } : LoaderArgs ) {
42
+ export async function loader ( { request } : LoaderFunctionArgs ) {
50
43
const isAnonymous = await isAnonymousSession ( request ) ;
51
44
52
45
if ( isAnonymous ) {
0 commit comments