Skip to content

Commit

Permalink
Revert "feat: allow multiple lines in alert component (#36126)"
Browse files Browse the repository at this point in the history
This reverts commit a6c109b.
  • Loading branch information
albinAppsmith committed Oct 2, 2024
1 parent 17ee5af commit 598a1d3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,3 @@ export const ToastBody = styled(Text)`
export const StyledButton = styled(Button)`
align-self: center;
`;

export const StyledPre = styled.pre`
font: inherit;
`;
9 changes: 2 additions & 7 deletions app/client/packages/design-system/ads/src/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import { Slide, toast as toastifyToast } from "react-toastify";
import "react-toastify/dist/ReactToastify.min.css";

import type { ToastProps } from "./Toast.types";
import {
StyledButton,
StyledPre,
StyledToast,
ToastBody,
} from "./Toast.styles";
import { StyledButton, StyledToast, ToastBody } from "./Toast.styles";
import { getIconByKind } from "../Icon/getIconByKind";

/**
Expand Down Expand Up @@ -45,7 +40,7 @@ const toast = {

return toastifyToast(
<ToastBody kind="body-m">
<StyledPre> {content}</StyledPre>
{content}
{actionText && (
<StyledButton
kind="tertiary"
Expand Down

0 comments on commit 598a1d3

Please sign in to comment.