Reformat with Prettier's updated line-wrapping for ternaries and JSX.

This commit is contained in:
Aaron Po
2026-08-27 02:44:25 -04:00
parent 7330eabebe
commit d7e1a79fb2
7 changed files with 40 additions and 32 deletions

View File

@@ -2,7 +2,10 @@ import { useEffect } from 'react';
import { showErrorToast } from '../../../components/ui/toast/toast';
import type { ActionResult } from '../types';
export const useSectionError = (result: ActionResult | undefined, intent: ActionResult['intent']) => {
export const useSectionError = (
result: ActionResult | undefined,
intent: ActionResult['intent'],
) => {
useEffect(() => {
if (!result || result.intent !== intent) return;
showErrorToast(result.error);