Function
defaultHtmlContent
({
formData,
error,
notice,
currency,
timezoneId,
isExpensesAppEnabled,
isMultiFactorAuthEnabled,
isCalendarAppEnabled,
helpEmail,
user,
}: {
formData: Record<string, any>;
error?: { title: string; message: string };
notice?: { title: string; message: string };
currency?: SupportedCurrencySymbol;
timezoneId?: string;
isExpensesAppEnabled: boolean;
isMultiFactorAuthEnabled: boolean;
isCalendarAppEnabled: boolean;
helpEmail: string;
user: { extra: Pick<User['extra'], 'multi_factor_auth_methods'> };
})
Source from the content-addressed store, hash-verified
| 249 | } |
| 250 | |
| 251 | function defaultHtmlContent({ |
| 252 | formData, |
| 253 | error, |
| 254 | notice, |
| 255 | currency, |
| 256 | timezoneId, |
| 257 | isExpensesAppEnabled, |
| 258 | isMultiFactorAuthEnabled, |
| 259 | isCalendarAppEnabled, |
| 260 | helpEmail, |
| 261 | user, |
| 262 | }: { |
| 263 | formData: Record<string, any>; |
| 264 | error?: { title: string; message: string }; |
| 265 | notice?: { title: string; message: string }; |
| 266 | currency?: SupportedCurrencySymbol; |
| 267 | timezoneId?: string; |
| 268 | isExpensesAppEnabled: boolean; |
| 269 | isMultiFactorAuthEnabled: boolean; |
| 270 | isCalendarAppEnabled: boolean; |
| 271 | helpEmail: string; |
| 272 | user: { extra: Pick<User['extra'], 'multi_factor_auth_methods'> }; |
| 273 | }) { |
| 274 | const settingsHtml = Settings({ |
| 275 | formData, |
| 276 | error, |
| 277 | notice, |
| 278 | currency, |
| 279 | timezoneId, |
| 280 | isExpensesAppEnabled, |
| 281 | isMultiFactorAuthEnabled, |
| 282 | isCalendarAppEnabled, |
| 283 | helpEmail, |
| 284 | user, |
| 285 | }); |
| 286 | |
| 287 | const htmlContent = html` |
| 288 | <main id="main"> |
| 289 | ${settingsHtml} |
| 290 | </main> |
| 291 | `; |
| 292 | |
| 293 | return htmlContent; |
| 294 | } |
| 295 | |
| 296 | export default page({ |
| 297 | get, |
Tested by
no test coverage detected