All files / react-app/src/features/dashboard/Lists/waivers index.tsx

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16      72x 54x 54x       54x            
import { useOsContext, ErrorAlert, OsMainView, LoadingSpinner } from "@/components";
import { useWaiverTableColumns } from "./consts";
 
export const WaiversList = () => {
  const context = useOsContext();
  const { columns, isLoading } = useWaiverTableColumns();
 
  if (context.error) return <ErrorAlert error={context.error} />;
 
  if (isLoading === true) {
    return <LoadingSpinner />;
  }
 
  return <OsMainView columns={columns} />;
};