Frontend security / security (push) Successful in 10s
Frontend verify / verify (push) Successful in 4m57s
Conventional commits / commits (pull_request) Successful in 28s
Frontend security / security (pull_request) Successful in 10s
Frontend verify / verify (pull_request) Successful in 5m10s
Repair investment recovery, draft preservation, date validation, currency presentation, accessibility, and route error recovery. Correct Docker and dependency checks and consume explicit income roles.
18 lines
638 B
TypeScript
18 lines
638 B
TypeScript
import type { FC } from "react";
|
|
import {
|
|
TbankConnectionError,
|
|
TbankConnectionLoading,
|
|
} from "./TbankConnectionSection.view";
|
|
import { useTbankConnectionViewModel } from "./TbankConnectionSection.vm";
|
|
import { TbankConnectionSectionLoaded } from "./TbankConnectionSectionLoaded";
|
|
|
|
const TbankConnectionSection: FC = () => {
|
|
const viewModel = useTbankConnectionViewModel();
|
|
if (viewModel.state === "loading") return <TbankConnectionLoading />;
|
|
if (viewModel.state === "error")
|
|
return <TbankConnectionError retry={viewModel.retry} />;
|
|
return <TbankConnectionSectionLoaded {...viewModel} />;
|
|
};
|
|
|
|
export { TbankConnectionSection };
|