fixed linting

This commit is contained in:
Andrew Pareles 2024-11-10 17:14:16 -08:00
parent 1feb7ec485
commit 289da6bd6d
2 changed files with 6 additions and 6 deletions

View file

@ -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>

View file

@ -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)