From 1f2e23250373dffba645124b3076c563550e5b23 Mon Sep 17 00:00:00 2001 From: Marc Rabat Date: Mon, 6 Mar 2023 18:28:51 +0100 Subject: [PATCH] chore(react): format files for linter error --- .../botonic-react/src/webchat/components/emoji-picker.jsx | 6 +++--- .../src/webchat/devices/scrollbar-controller.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/botonic-react/src/webchat/components/emoji-picker.jsx b/packages/botonic-react/src/webchat/components/emoji-picker.jsx index 7217251668..e35feccf7c 100644 --- a/packages/botonic-react/src/webchat/components/emoji-picker.jsx +++ b/packages/botonic-react/src/webchat/components/emoji-picker.jsx @@ -7,8 +7,8 @@ import { ROLES } from '../../constants' import { useComponentVisible } from '../hooks' import { Icon, IconContainer } from './common' -export const EmojiPicker = props =>{ - const onClick = event =>{ +export const EmojiPicker = props => { + const onClick = event => { props.onClick() event.stopPropagation() } @@ -20,7 +20,7 @@ export const EmojiPicker = props =>{ ) -} +} const Container = styled.div` display: flex; diff --git a/packages/botonic-react/src/webchat/devices/scrollbar-controller.js b/packages/botonic-react/src/webchat/devices/scrollbar-controller.js index b69ea218b7..0735c00b20 100644 --- a/packages/botonic-react/src/webchat/devices/scrollbar-controller.js +++ b/packages/botonic-react/src/webchat/devices/scrollbar-controller.js @@ -84,8 +84,8 @@ export class ScrollbarController { return } this.webchat.ontouchmove = e => { - if(e.target === e.currentTarget) - e.preventDefault() + if (e.target === e.currentTarget) + e.preventDefault() } }