From d7953abfaf0dd0cf5b256d280daa46409561f75a Mon Sep 17 00:00:00 2001 From: tealjulia Date: Fri, 30 Sep 2022 11:13:57 -0400 Subject: [PATCH] cleanup from rebase --- .../CreateConnection/CreateConnection.tsx | 2 +- .../components/TryAfterErrorBlock.module.scss | 14 ---------- .../components/TryAfterErrorBlock.tsx | 27 ------------------- .../ConnectionReplicationTab.module.scss | 2 +- 4 files changed, 2 insertions(+), 43 deletions(-) delete mode 100644 airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.module.scss delete mode 100644 airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.tsx diff --git a/airbyte-webapp/src/components/CreateConnection/CreateConnection.tsx b/airbyte-webapp/src/components/CreateConnection/CreateConnection.tsx index 2a27f73bc0eb..d84727c643bd 100644 --- a/airbyte-webapp/src/components/CreateConnection/CreateConnection.tsx +++ b/airbyte-webapp/src/components/CreateConnection/CreateConnection.tsx @@ -16,8 +16,8 @@ import { ConnectionForm } from "views/Connection/ConnectionForm"; import { DestinationRead, SourceRead } from "../../core/request/AirbyteClient"; import { useDiscoverSchema } from "../../hooks/services/useSourceHook"; -import TryAfterErrorBlock from "./components/TryAfterErrorBlock"; import styles from "./CreateConnection.module.scss"; +import TryAfterErrorBlock from "./TryAfterErrorBlock"; interface CreateConnectionProps { source: SourceRead; diff --git a/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.module.scss b/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.module.scss deleted file mode 100644 index 5b73e2b8991b..000000000000 --- a/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.module.scss +++ /dev/null @@ -1,14 +0,0 @@ -@use "../../scss/variables"; - -.container { - padding: variables.$spacing-2xl; - text-align: center; -} - -.message { - padding: variables.$spacing-lg 0 variables.$spacing-md; -} - -.retryButton { - min-width: 239px; -} diff --git a/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.tsx b/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.tsx deleted file mode 100644 index 4c7a1145e86d..000000000000 --- a/airbyte-webapp/src/components/CreateConnection/components/TryAfterErrorBlock.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from "react"; -import { FormattedMessage } from "react-intl"; - -import { StatusIcon } from "components/StatusIcon"; -import { Button } from "components/ui/Button"; -import { Text } from "components/ui/Text"; - -import styles from "./TryAfterErrorBlock.module.scss"; - -interface TryAfterErrorBlockProps { - message?: React.ReactNode; - onClick: () => void; -} - -const TryAfterErrorBlock: React.FC = ({ message, onClick }) => ( -
- - - {message || } - - -
-); - -export default TryAfterErrorBlock; diff --git a/airbyte-webapp/src/pages/ConnectionPage/pages/ConnectionItemPage/ConnectionReplicationTab.module.scss b/airbyte-webapp/src/pages/ConnectionPage/pages/ConnectionItemPage/ConnectionReplicationTab.module.scss index 1973c031da26..10360aaf922e 100644 --- a/airbyte-webapp/src/pages/ConnectionPage/pages/ConnectionItemPage/ConnectionReplicationTab.module.scss +++ b/airbyte-webapp/src/pages/ConnectionPage/pages/ConnectionItemPage/ConnectionReplicationTab.module.scss @@ -1,4 +1,4 @@ -@use "../../../../../scss/variables"; +@use "../../../../scss/variables"; .tryArrow { margin: 0 variables.$spacing-md -1px 0;