Add brewery discovery & detail pages with location-based search (#253)

This commit is contained in:
Aaron Po
2026-08-29 00:44:33 -04:00
committed by GitHub
parent 92a30b11db
commit a580314583
90 changed files with 3874 additions and 187 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);