@@ -121,7 +121,7 @@ function createSchema(
121121
122122export async function loader ( { request } : LoaderFunctionArgs ) {
123123 await requireUserId ( request ) ;
124- const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : true } ) ;
124+ const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : false } ) ;
125125 return json ( { showThemeSwitcher } ) ;
126126}
127127
@@ -131,7 +131,7 @@ export const action: ActionFunction = async ({ request }) => {
131131 const formData = await request . formData ( ) ;
132132
133133 if ( formData . get ( "action" ) === "update-theme" ) {
134- const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : true } ) ;
134+ const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : false } ) ;
135135 if ( ! showThemeSwitcher ) {
136136 return json ( { error : "Not available" } , { status : 404 } ) ;
137137 }
@@ -142,7 +142,7 @@ export const action: ActionFunction = async ({ request }) => {
142142 }
143143
144144 if ( formData . get ( "action" ) === "update-contrast" ) {
145- const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : true } ) ;
145+ const showThemeSwitcher = await flag ( { key : "hasThemeSwitcher" , defaultValue : false } ) ;
146146 if ( ! showThemeSwitcher ) {
147147 return json ( { error : "Not available" } , { status : 404 } ) ;
148148 }
0 commit comments