[Glitch] Run eslint --fix

I don't like it changing files this way, but it's basically what
c49213f0ea and a few others did.
This commit is contained in:
Claire
2023-02-03 20:52:07 +01:00
parent ed7cb79723
commit 155424e52f
233 changed files with 1262 additions and 1248 deletions

View File

@@ -49,7 +49,7 @@ const PageTwo = ({ intl, myAccount }) => (
privacy='public'
text='Awoo! #introductions'
spoilerText=''
suggestions={ [] }
suggestions={[]}
/>
</div>
</div>
@@ -195,7 +195,7 @@ class OnboardingModal extends React.PureComponent {
<PageFour domain={domain} intl={intl} />,
<PageSix admin={admin} domain={domain} />,
];
};
}
componentDidMount() {
window.addEventListener('keyup', this.handleKeyUp);
@@ -208,30 +208,30 @@ class OnboardingModal extends React.PureComponent {
handleSkip = (e) => {
e.preventDefault();
this.props.onClose();
}
};
handleDot = (e) => {
const i = Number(e.currentTarget.getAttribute('data-index'));
e.preventDefault();
this.setState({ currentIndex: i });
}
};
handlePrev = () => {
this.setState(({ currentIndex }) => ({
currentIndex: Math.max(0, currentIndex - 1),
}));
}
};
handleNext = () => {
const { pages } = this;
this.setState(({ currentIndex }) => ({
currentIndex: Math.min(currentIndex + 1, pages.length - 1),
}));
}
};
handleSwipe = (index) => {
this.setState({ currentIndex: index });
}
};
handleKeyUp = ({ key }) => {
switch (key) {
@@ -242,11 +242,11 @@ class OnboardingModal extends React.PureComponent {
this.handleNext();
break;
}
}
};
handleClose = () => {
this.props.onClose();
}
};
render () {
const { pages } = this;