-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3601: test connection results toast (#3700)
- Loading branch information
Showing
6 changed files
with
56 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 0 additions & 122 deletions
122
clients/admin-ui/src/features/datastore-connections/system_portal_config/TestConnection.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...dmin-ui/src/features/datastore-connections/system_portal_config/TestConnectionMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Text } from "@fidesui/react"; | ||
import React from "react"; | ||
|
||
type TestConnectionMessageProps = { | ||
status: "success" | "error"; | ||
}; | ||
|
||
const TestConnectionMessage: React.FC<TestConnectionMessageProps> = ({ | ||
status, | ||
}) => ( | ||
<> | ||
{status === "success" && <Text>Connection test was successful</Text>} | ||
{status === "error" && ( | ||
<Text>Test failed: please check your connection info</Text> | ||
)} | ||
</> | ||
); | ||
|
||
export default TestConnectionMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters