mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
fixed linting
This commit is contained in:
parent
1feb7ec485
commit
289da6bd6d
2 changed files with 6 additions and 6 deletions
|
|
@ -47,7 +47,7 @@ const Sidebar = ({ accessor }: { accessor: ServicesAccessor }) => {
|
|||
|
||||
<span onClick={() => {
|
||||
const tabs = ['chat', 'settings', 'threadSelector']
|
||||
let index = tabs.indexOf(tab)
|
||||
const index = tabs.indexOf(tab)
|
||||
setTab(tabs[(index + 1) % tabs.length] as any)
|
||||
}}>clickme {tab}</span>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import * as ReactDOM from "react-dom/client"
|
||||
import React from 'react';
|
||||
import * as ReactDOM from 'react-dom/client'
|
||||
import { ServicesAccessor } from '../../../../../../platform/instantiation/common/instantiation';
|
||||
// import { initPosthog, identifyUser } from "./posthog";
|
||||
// import { initPosthog, identifyUser } from './posthog';
|
||||
|
||||
// const ListenersAndTracking = () => {
|
||||
// // initialize posthog
|
||||
|
|
@ -34,8 +34,8 @@ import { ServicesAccessor } from '../../../../../../platform/instantiation/commo
|
|||
|
||||
|
||||
export const mountFnGenerator = (Component: React.FC<{ accessor: ServicesAccessor }>) => (rootElement: HTMLElement, accessor: ServicesAccessor) => {
|
||||
if (typeof document === "undefined") {
|
||||
console.error("index.tsx error: document was undefined")
|
||||
if (typeof document === 'undefined') {
|
||||
console.error('index.tsx error: document was undefined')
|
||||
return
|
||||
}
|
||||
const root = ReactDOM.createRoot(rootElement)
|
||||
|
|
|
|||
Loading…
Reference in a new issue