fix: buttons not working
This commit is contained in:
@@ -43,17 +43,14 @@ const DashboardView = ({
|
||||
return;
|
||||
}
|
||||
row.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
||||
row.classList.add('ring-4', 'ring-blue-400', 'bg-blue-50', 'transition');
|
||||
row.style.transition = 'background-color 0.8s ease, box-shadow 0.8s ease';
|
||||
row.classList.add('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
|
||||
const timeout = setTimeout(() => {
|
||||
row.classList.remove('ring-4', 'ring-blue-400');
|
||||
row.style.backgroundColor = 'transparent';
|
||||
setTimeout(onClearFocus, 600);
|
||||
}, 2200);
|
||||
row.classList.remove('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
|
||||
onClearFocus();
|
||||
}, 2500);
|
||||
return () => {
|
||||
clearTimeout(timeout);
|
||||
row.classList.remove('ring-4', 'ring-blue-400');
|
||||
row.style.backgroundColor = 'transparent';
|
||||
row.classList.remove('dashboard-row-highlight', 'ring-4', 'ring-blue-400');
|
||||
};
|
||||
}, [focusedStoreId, onClearFocus]);
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user