Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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