Funnel .tsx extensions via subfolders

This commit is contained in:
Manav Rathi 2024-02-16 10:23:48 +05:30
parent 703031f73c
commit 6b5859dca7
3 changed files with 7 additions and 1 deletions

View file

@ -80,6 +80,7 @@ import { getTheme } from '@ente/shared/themes';
import { AppUpdateInfo } from '@ente/shared/electron/types';
import DownloadManager from 'services/download';
import { sayHello } from '@/utils/hello';
import { Card } from '@/utils/components/Card';
// import { sayHello } from '@repo/ui/hello';
const redirectMap = new Map([
@ -412,6 +413,7 @@ export default function App(props: EnteAppProps) {
<ThemeProvider theme={getTheme(themeColor, APPS.PHOTOS)}>
<CssBaseline enableColorScheme />
<Card />
{showNavbar && <AppNavbar isMobile={isMobile} />}
<MessageContainer>
{offline && t('OFFLINE_MSG')}

View file

@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"exports": {
"./hello": "./src/hello.ts"
"./components/*": "./src/components/*.tsx",
"./*": "./src/*.ts"
}
}

View file

@ -0,0 +1,3 @@
export const Card: React.FC = () => {
return <div>Hello</div>;
};