Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

390 B
Raw Blame
// A workaround to make the globals.css file work in the web app
import '../../../packages/ui/src/styles/globals.css';

import { useRegisterSW } from 'virtual:pwa-register/react';

import { App } from '@colanode/ui';

export const Root = () => {
  useRegisterSW({
    onRegisterError(error) {
      console.log('SW registration error', error);
    },
  });

  return <App type="web" />;
};