Files
artcraft/app/components/reusable/UploadModal/UploadSuccess.tsx
T
wilandwil a8d0541c31 Feature/ Sets Tab; Fixes/ Tabs Improvements (#578)
Tabs Improvements:
- refactor tabs so no more race condition revolving unneccessary signals
- clean up signals
- refactor upload modal movement to be non-signaled and generalized for
more files types
- better naming for files and components, better error handling, eslint
type any fix
- upload file screen can use less state rerenders and better error
messages

Object Uploader
- adapt the old object upload modal with 3d object preview into the
updated best version of upload modal
- preview loader code improvements, better flow and organization

Sets Tab:
- create a set tab, it currently show objects
- hide it behind a FeatureFlag

---------

Co-authored-by: wil <wil@storyteller.ai>
2024-07-07 21:19:07 -04:00

20 lines
430 B
TypeScript

import { Button } from "~/components";
interface Props {
title: string;
onOk: () => void;
}
export const UploadSuccess = ({ title, onOk }: Props) => {
return (
<>
<div className="w-100 text-center opacity-50">{`Added ${title} to your library`}</div>
<div className="mt-6 flex justify-end gap-2">
<Button onClick={onOk} variant="primary">
Ok
</Button>
</div>
</>
);
};