Skip to content

Commit 6696765

Browse files
author
anmarhindi
committed
Fixes: new loading icon for weak supervision
1 parent 05c15b8 commit 6696765

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/projects/projectId/heuristics/HeuristicsHeader.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import LoadingIcon from '@/src/components/shared/loading/LoadingIcon';
1+
import { Loading } from "@nextui-org/react";
22
import { selectIsManaged } from '@/src/reduxStore/states/general';
33
import { openModal, selectModal } from '@/src/reduxStore/states/modal';
44
import { selectHeuristicsAll, setHeuristicType } from '@/src/reduxStore/states/pages/heuristics';
@@ -259,7 +259,9 @@ export default function HeuristicsHeader(props: HeuristicsHeaderProps) {
259259
{currentWeakSupervisionRun ? (<Tooltip content={TOOLTIPS_DICT.HEURISTICS.LAST_WEAK_SUPERVISION_INFO} color="invert" placement="bottom">
260260
<button onClick={() => dispatch(openModal(ModalEnum.LAST_WEAK_SUPERVISION_RUN))}
261261
className="bg-white text-gray-700 text-xs font-medium mr-3 px-4 py-1.5 rounded-md border border-gray-300 cursor-pointer inline-block hover:bg-gray-50">
262-
{loadingIconWS ? <LoadingIcon color="indigo" size="custom-sm" removeMargin={true} /> : <IconWaveSine size={20} strokeWidth={2} className="text-gray-700" />}
262+
{loadingIconWS ? <div className='flex justify-center items-center h-5 w-5'>
263+
<Loading type="points" size="sm" />
264+
</div> : <IconWaveSine size={20} strokeWidth={2} className="text-gray-700" />}
263265
</button>
264266
</Tooltip>) : (<Tooltip content={TOOLTIPS_DICT.HEURISTICS.LAST_WEAK_SUPERVISION_INFO} color="invert" placement="bottom">
265267
<button className="bg-white text-gray-700 text-xs font-medium mr-3 px-4 py-1.5 rounded-md border border-gray-300 cursor-pointer inline-block hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-50" disabled={true}>

0 commit comments

Comments
 (0)