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
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,12 @@ const IconWrapper = styled.a<AppIconProps & { styledProps: cssAttributes }>`
export type AppIconProps = CommonComponentProps & {
size?: Size;
name: AppIconName;
onClick?: (e: unknown) => void;
onClick?: (e: any) => void;
};

function AppIcon(props: AppIconProps) {
const styledProps = useMemo(
// @ts-expect-error Fix this the next time the file is edited
() => appSizeHandler(props.size != null || Size.medium),
() => appSizeHandler(props.size || Size.medium),
[props],
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button, { Category, IconPositions, Size } from "../Button";
import type { IconName } from "../Icon";
import Icon, { IconSize } from "../Icon";
import Text, { TextType } from "../Text";
import { Toaster } from "../Toast";
import { toast } from "design-system";
import TooltipComponent from "../Tooltip";
import {
createMessage,
Expand All @@ -16,7 +16,6 @@ import {
} from "../constants/messages";
import { Classes } from "../constants/classes";
import { importSvg } from "../utils/icon-loadables";
import { Variant } from "../constants/variants";

const UploadSuccessIcon = importSvg(
async () => import("../assets/icons/ads/upload_success.svg"),
Expand Down Expand Up @@ -351,9 +350,8 @@ function FilePickerComponent(props: FilePickerProps) {
/* set form data and send api request */
fileUploader && fileUploader(file, setProgress, onUpload);
} else {
Toaster.show({
text: createMessage(ERROR_FILE_TOO_LARGE, "250 KB"),
variant: Variant.warning,
toast.show(createMessage(ERROR_FILE_TOO_LARGE, "250 KB"), {
kind: "warning",
});
}
}
Expand Down
269 changes: 0 additions & 269 deletions app/client/packages/design-system/ads-old/src/Toast/index.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions app/client/packages/design-system/ads-old/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ export * from "./TextInput";
export { default as TooltipComponent } from "./Tooltip";
export * from "./Tooltip";

export * from "./Toast";

export { default as TreeDropdown } from "./TreeDropdown";
export * from "./TreeDropdown";

Expand Down
Loading