mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 21:02:14 +00:00
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>
20 lines
430 B
TypeScript
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>
|
|
</>
|
|
);
|
|
};
|