add scale-down
This commit is contained in:
@@ -55,7 +55,12 @@ export const CANSignalProvider = ({ token, children }) => {
|
|||||||
const items = transformSignals(result.data);
|
const items = transformSignals(result.data);
|
||||||
|
|
||||||
if (items.length > 0) {
|
if (items.length > 0) {
|
||||||
setDelayIndex(0);
|
setDelayIndex((index) => {
|
||||||
|
if (index === 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
return index -= 1;
|
||||||
|
});
|
||||||
setSignals(items);
|
setSignals(items);
|
||||||
} else {
|
} else {
|
||||||
setDelayIndex((index) => {
|
setDelayIndex((index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user