-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add configurable size to CustomLoader component
- Loading branch information
1 parent
d994a73
commit d41b7b9
Showing
4 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
src/frontend/src/customization/components/custom-loader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import LoadingComponent from "@/components/common/loadingComponent"; | ||
import { ENABLE_DATASTAX_LANGFLOW } from "../feature-flags"; | ||
|
||
const CustomLoader = () => { | ||
return ENABLE_DATASTAX_LANGFLOW ? <></> : <LoadingComponent remSize={30} />; | ||
type CustomLoaderProps = { | ||
remSize?: number; | ||
}; | ||
|
||
const CustomLoader = ({ remSize = 30 }: CustomLoaderProps) => { | ||
return ENABLE_DATASTAX_LANGFLOW ? ( | ||
<></> | ||
) : ( | ||
<LoadingComponent remSize={remSize} /> | ||
); | ||
}; | ||
|
||
export default CustomLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters