Skip to content

Commit

Permalink
fix: only show loading icon on initial loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokesh Jain committed Dec 4, 2023
1 parent 288d158 commit f7a4dae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/LoadedTable.res
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ let make = (
? ""
: `${isMinHeightRequired ? noScrollbar ? "" : "overflow-x-scroll" : "overflow-scroll"}`
let loadedTable =
<div className={`no-scrollbar ${scrollBarClass} no-scrollbar`}>
<div className={`no-scrollbar ${scrollBarClass}`}>
{switch dataView {
| Table => {
let children =
Expand Down
13 changes: 6 additions & 7 deletions src/components/Loader.res
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@ let make = (
<div className={`${animationType} mb-10`}>
<Icon name="spinner" size customIconColor=customSpinnerIconColor />
</div>
{React.string(loadingText)}
{children}
</div>

<div className="flex flex-col">
<div className="w-full flex justify-center py-10">
<div className="w-20 h-16">
<div className="scale-400 pt-px">
<React.Suspense fallback={loader}>
<ErrorBoundary>
<React.Suspense fallback={loader}>
<ErrorBoundary>
<div className="scale-400 pt-px">
<Lottie animationData={loaderLottieFile} autoplay=true loop=true />
</ErrorBoundary>
</React.Suspense>
</div>
</div>
</ErrorBoundary>
</React.Suspense>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/entryPoints/hyperswitch/HyperSwitchApp.res
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ let make = () => {
</div>
</div>
<div
className="w-full h-screen overflow-x-scroll xl:overflow-x-hidden overflow-y-scroll ">
className="w-full h-screen overflow-x-scroll xl:overflow-x-hidden overflow-y-scroll">
<div
className="w-full h-full max-w-fixedPageWidth p-6 md:px-16 md:pb-16 pt-[3rem] overflow-scroll md:overflow-y-scroll md:overflow-x-hidden flex flex-col gap-10">
<ErrorBoundary>
Expand Down

0 comments on commit f7a4dae

Please sign in to comment.