Skip to content

Commit cf91ce0

Browse files
committed
run prettier
1 parent c26e9be commit cf91ce0

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

src/components/SetupPage/index.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,15 @@ export default ({ onClearLabelData }) => {
3131
return (
3232
<div>
3333
<Box padding="8px" paddingBottom="0px">
34-
<Tabs value={currentTab} onChange={(e, newTab) => {
35-
addToast(
36-
"Couldn't load plugin: ",
37-
"error",
38-
() => {
39-
console.log('passed click')
40-
}
41-
)
42-
setTab(newTab)
43-
}}>
34+
<Tabs
35+
value={currentTab}
36+
onChange={(e, newTab) => {
37+
addToast("Couldn't load plugin: ", "error", () => {
38+
console.log("passed click")
39+
})
40+
setTab(newTab)
41+
}}
42+
>
4443
<Tab icon={<CategoryIcon />} label="Data Type" value="datatype" />
4544
<Tab
4645
disabled={!iface?.type}

src/components/Toasts/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ export const ToastProvider = ({ children }) => {
127127
return () => clearInterval(interval)
128128
}, [toasts])
129129

130-
const addToast = (message: string, messageType: string = "info", onClick: function = null) =>
131-
changeToasts({ type: "add", message, messageType, onClick })
130+
const addToast = (
131+
message: string,
132+
messageType: string = "info",
133+
onClick: function = null
134+
) => changeToasts({ type: "add", message, messageType, onClick })
132135

133136
return (
134137
<>
@@ -172,7 +175,7 @@ export const Notification = ({ type, message, onClick, onClose }) => {
172175
return (
173176
<paper
174177
className={classes.notificationPaper}
175-
style={{ position: "relative", cursor: 'pointer' }}
178+
style={{ position: "relative", cursor: "pointer" }}
176179
onClick={() => {
177180
if (onClick) {
178181
onClick()

0 commit comments

Comments
 (0)