temporarily remove error boundary scene to fix dashboard crashing

pull/104/head
dperolio 2 years ago
parent cf40e1d834
commit aed28dfaad
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -8,10 +8,6 @@ const SlideIn = getModuleByDisplayName('SlideIn');
const { getCurrentUser } = getModule('getCurrentUser');
/*
* const { PremiumPaymentGuildAnimation } = getModule('PremiumPaymentGuildAnimation');
* const { usePaymentModalAnimationScene } = getModule('usePaymentModalAnimationScene');
*/
export default memo(() => {
const [ completed, setCompleted ] = useState(0);
const refs = useRef([]);
@ -53,24 +49,6 @@ export default memo(() => {
</div>
))}
</div>
{/* e.WAITING = "WAITING",
e.PURCHASING = "PURCHASING",
e.FAIL = "FAIL",
e.COMPLETED = "COMPLETED" */}
{/* <PremiumPaymentGuildAnimation
nextScene={
usePaymentModalAnimationScene({
purchaseState: 'PURCHASING',
currentStep: 'confirm',
initialScene: PremiumPaymentGuildAnimation.Scenes.ENTRY,
purchaseScene: PremiumPaymentGuildAnimation.Scenes.STARS,
errorScene: PremiumPaymentGuildAnimation.Scenes.ERROR,
successScene: PremiumPaymentGuildAnimation.Scenes.SUCCESS
})[0]
}
onScenePlay={PremiumPaymentGuildAnimation.getNextScene}
pauseWhileUnfocused={false}
/> */}
<ProgressBar completed={completed} />
<SearchBar query='bob' size={SearchBar.Sizes.SMALL} />
<SearchBar query='bob' size={SearchBar.Sizes.MEDIUM} />

@ -76,7 +76,7 @@ export default class ErrorBoundary extends PureComponent {
}
render () {
const { PremiumPaymentAnimationTier2 } = getModule('PremiumPaymentAnimationTier2');
// const { PremiumModalHeaderAnimationTier2 } = getModule('PremiumModalHeaderAnimationTier2');
this.setState({ nextScene: 'idle_loop' });
return (
<>
@ -97,9 +97,9 @@ export default class ErrorBoundary extends PureComponent {
<div className={joinClassNames('vz-error-boundary-block', 'vz-error-boundary-component-stack', this.classes.thin)}>
{this.state.componentStack}
</div>
{this.props.showScene && (
<PremiumPaymentAnimationTier2 className='vz-error-boundary-scene' nextScene={this.state.nextScene} onScenePlay={evt => this.setState({ nextScene: PremiumPaymentAnimationTier2.getNextScene(evt) })} />
)}
{/* {this.props.showScene && (
<PremiumModalHeaderAnimationTier2 className='vz-error-boundary-scene' nextScene={this.state.nextScene} onScenePlay={evt => this.setState({ nextScene: PremiumModalHeaderAnimationTier2.getNextScene(evt) })} />
)} */}
</div>
)}
{!this.state.hasCrashed && this.props.children}

@ -15,7 +15,6 @@ export const LazyImageZoomable = AsyncComponent.fromDisplayName('LazyImageZoomab
export const KeyboardShortcut = AsyncComponent.fromDisplayName('KeyboardShortcut');
export const Avatar = AsyncComponent.fetchFromProps('AnimatedAvatar', 'default');
export const ContextMenu = AsyncComponent.fetchFromProps('MenuGroup', 'default');
export const PremiumPaymentGuildAnimation = AsyncComponent.fetchFromProps('PremiumPaymentGuildAnimation');
export const KeybindRecorder = AsyncComponent.fromDisplayName('KeybindRecorder');
export const Helmet = AsyncComponent.fetchFromProps('HelmetProvider', 'Helmet');
export const UserPopout = AsyncComponent.fromDisplayName('ConnectedUserPopout');

@ -201,7 +201,7 @@ async function getDiscordAppPath () {
/**
* If the process can't be found, try to determine the directory path by checking if any
* predefined path directories exist.
* predefined directory paths exist.
*/
if (!discordProcess) {
warn('Cannot find Discord process, falling back to legacy path detection...');

Loading…
Cancel
Save