Skip to content

Commit 27a63fe

Browse files
committed
remove redundant UI
1 parent 9d44769 commit 27a63fe

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

apps/loom-importer-extension/src/components/ImportProgress.tsx

+5-19
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,11 @@ const ImportProgress: React.FC<ImportProgressProps> = ({
1818
const isProcessingDisabled =
1919
importState.currentStep !== ImportStep.VIDEOS_SELECTED;
2020

21-
if (importState.currentStep === ImportStep.IMPORT_COMPLETE) {
22-
if (window.location.href.includes("loom.com")) return null;
23-
24-
return (
25-
<>
26-
<p className="text-[0.875rem] leading-[1.25rem] font-medium text-green-600 mb-1">
27-
Success 🎉
28-
</p>
29-
<button
30-
onClick={async () => {
31-
await chrome.storage.local.clear();
32-
window.location.reload();
33-
}}
34-
className="mt-2 px-3 py-1.5 bg-blue-100 hover:bg-blue-200 rounded-md text-blue-600 text-xs font-medium transition-colors duration-200"
35-
>
36-
Reload page
37-
</button>
38-
</>
39-
);
21+
if (
22+
importState.currentStep === ImportStep.IMPORT_COMPLETE &&
23+
window.location.href.includes("loom.com")
24+
) {
25+
return <></>;
4026
}
4127

4228
return (

0 commit comments

Comments
 (0)