diff --git a/site/src/components/Alert/Alert.stories.tsx b/site/src/components/Alert/Alert.stories.tsx index 42142a77c98c9..797157de85abb 100644 --- a/site/src/components/Alert/Alert.stories.tsx +++ b/site/src/components/Alert/Alert.stories.tsx @@ -1,6 +1,5 @@ import { Alert } from "./Alert"; import Button from "@mui/material/Button"; -import Link from "@mui/material/Link"; import type { Meta, StoryObj } from "@storybook/react"; const meta: Meta = { @@ -21,7 +20,6 @@ export const Success: Story = { args: { children: "You're doing great!", severity: "success", - onRetry: undefined, }, }; @@ -56,14 +54,3 @@ export const WarningWithActionAndDismiss: Story = { severity: "warning", }, }; - -export const WithChildren: Story = { - args: { - severity: "warning", - children: ( -
- This is a message with a link -
- ), - }, -}; diff --git a/site/src/components/Alert/Alert.tsx b/site/src/components/Alert/Alert.tsx index b0cba398c7981..fb3f5e07c170d 100644 --- a/site/src/components/Alert/Alert.tsx +++ b/site/src/components/Alert/Alert.tsx @@ -8,14 +8,12 @@ import Box from "@mui/material/Box"; export type AlertProps = MuiAlertProps & { actions?: ReactNode; dismissible?: boolean; - onRetry?: () => void; onDismiss?: () => void; }; export const Alert: FC = ({ children, actions, - onRetry, dismissible, severity, onDismiss, @@ -34,13 +32,6 @@ export const Alert: FC = ({ {/* CTAs passed in by the consumer */} {actions} - {/* retry CTA */} - {onRetry && ( - - )} - {/* close CTA */} {dismissible && ( , + }, +}; diff --git a/site/src/components/EmptyState/EmptyState.test.tsx b/site/src/components/EmptyState/EmptyState.test.tsx deleted file mode 100644 index 5e5ad5089d295..0000000000000 --- a/site/src/components/EmptyState/EmptyState.test.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { screen } from "@testing-library/react"; -import { render } from "../../testHelpers/renderHelpers"; -import { EmptyState } from "./EmptyState"; - -describe("EmptyState", () => { - it("renders (smoke test)", async () => { - // When - render(); - - // Then - await screen.findByText("Hello, world"); - }); - - it("renders description text", async () => { - // When - render( - , - ); - - // Then - await screen.findByText("Hello, world"); - await screen.findByText("Friendly greeting"); - }); - - it("renders cta component", async () => { - // Given - const cta =