Skip to content

Commit

Permalink
Dont show the filename in the cloud mode and demo site
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <[email protected]>
  • Loading branch information
popcornylu committed Dec 16, 2024
1 parent 1b5bc62 commit 4a88272
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/src/components/app/Filename.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ interface FilenameState {
}

export const Filename = () => {
const { fileName, cloudMode, isLoading } = useLineageGraphContext();
const { fileName, cloudMode, isDemoSite, isLoading } =
useLineageGraphContext();
const modalDisclosure = useDisclosure();
const overwriteDisclosure = useDisclosure();

Expand Down Expand Up @@ -159,6 +160,10 @@ export const Filename = () => {
});
};

if (cloudMode || isDemoSite) {
return <></>;
}

return (
<>
<Flex flex="1" justifyContent="center" alignItems="center">
Expand Down

0 comments on commit 4a88272

Please sign in to comment.