Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Inline

Manav Rathi7cef60f8b965
diff --git a/web/apps/payments/src/App.tsx b/web/apps/payments/src/App.tsx
index e987223b17..59f7b7d654 100644
--- a/web/apps/payments/src/App.tsx
+++ b/web/apps/payments/src/App.tsx
@@ -1,5 +1,4 @@
import React, { useEffect, useRef, useState } from "react";
-import { Container } from "./components/Container";
import { parseAndHandleRequest } from "./services/billing";
import S from "./utils/strings";
@@ -18,4 +17,8 @@ export const App: React.FC = () => {
return <Container>{failed ? S.error_generic : <Spinner />}</Container>;
};
+const Container: React.FC<React.PropsWithChildren> = ({ children }) => (
+ <div className="container">{children}</div>
+);
+
const Spinner: React.FC = () => <div className="loading-spinner"></div>;
diff --git a/web/apps/payments/src/components/Container.tsx b/web/apps/payments/src/components/Container.tsx
deleted file mode 100644
index bf8c57b5dc..0000000000
--- a/web/apps/payments/src/components/Container.tsx
+++ /dev/null
@@ -1,5 +0,0 @@
-import React from "react";
-
-export const Container: React.FC<React.PropsWithChildren> = ({ children }) => (
- <div className="container">{children}</div>
-);