All files / applications/go-by-transit/src/view/home AllAlertsCard.tsx

66.66% Statements 2/3
100% Branches 0/0
66.66% Functions 2/3
66.66% Lines 2/3

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            17x 1x        
import React from "react";
import { Link } from "react-router-dom";
import { AllAlertsCard as SharedAllAlertsCard, type AllAlertsCardProps } from "@overworld/ui/alerts";
import Loading from "../loading/Loading";
 
export default function AllAlertsCard(props: Omit<AllAlertsCardProps, "loadingContent" | "renderStopLink" | "renderRouteLink">) {
  return <SharedAllAlertsCard {...props} loadingContent={<Loading />}
    renderStopLink={id => <Link to={`/stop/${id}`}>{id}</Link>}
    renderRouteLink={id => <Link to={`/lines/${id}`}>{id}</Link>}
  />;
}