mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-22 22:28:15 +00:00
comment out unused isLongFadeIn logic
This commit is contained in:
parent
0718d9e0a7
commit
77df13f938
@ -56,7 +56,6 @@ export default function SpiffUIV3() {
|
||||
|
||||
const [displayLocation, setDisplayLocation] = useState(location);
|
||||
const [transitionStage, setTransitionStage] = useState('fadeIn');
|
||||
const [isLongFadeIn, setIsLongFadeIn] = useState(false);
|
||||
const [additionalNavElement, setAdditionalNavElement] =
|
||||
useState<ReactElement | null>(null);
|
||||
|
||||
@ -110,11 +109,10 @@ export default function SpiffUIV3() {
|
||||
/** Respond to transition events, this softens screen changes (UX) */
|
||||
useEffect(() => {
|
||||
if (location !== displayLocation) {
|
||||
const isComingFromInterstitialOrProgress =
|
||||
/\/interstitial$|\/progress$/.test(displayLocation.pathname);
|
||||
setIsLongFadeIn(
|
||||
isComingFromInterstitialOrProgress && location.pathname === '/newui',
|
||||
);
|
||||
// const isComingFromInterstitialOrProgress = /\/interstitial$|\/progress$/.test(displayLocation.pathname);
|
||||
// setIsLongFadeIn(
|
||||
// isComingFromInterstitialOrProgress && location.pathname === '/newui',
|
||||
// );
|
||||
setTransitionStage(fadeOutImmediate);
|
||||
}
|
||||
if (transitionStage === fadeOutImmediate) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user