Skip to content

Commit

Permalink
fix: @megabrain/ui import statement error on 'next build'
Browse files Browse the repository at this point in the history
  • Loading branch information
ByungJin-Lee committed May 15, 2023
1 parent 2473f06 commit c9594b3
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 30 deletions.
8 changes: 1 addition & 7 deletions apps/club/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { HelloWorld, WelcomeBlock } from '@megabrain/ui';
import { sayHello } from '@megabrain/core';
//import { styled } from '@megabrain/ui/libs'; // UI Libs
//import { Clock } from '@megabrain/ui/icons'; // Icon

export default function Home() {
sayHello();

return (
<>
<HelloWorld />
<WelcomeBlock />
</>
);
return <>Hello</>;
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"lint-all:fix": "yarn lint --fix",
"prepare": "husky install",
"dev:club": "yarn workspace @megabrain/club dev",
"storybook": "yarn workspace @megabrain/ui storybook"
"storybook": "yarn workspace @megabrain/ui storybook",
"build:club": "yarn workspace @megabrain/club build"
},
"workspaces": {
"packages": [
Expand Down Expand Up @@ -35,4 +36,4 @@
"prettier": "^2.8.8",
"typescript": "^5.0.4"
}
}
}
2 changes: 1 addition & 1 deletion packages/ui/components/Button/Button.style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { styled } from '@/styles';
import { styled } from '@megabrain/ui/styles';

export const BaseButton = styled('button', {
$$color: '$colors$primary',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Container/Container.style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { styled } from '@/styles';
import { styled } from '@megabrain/ui/styles';
import { css } from '@stitches/react';

const baseCenter = css({
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Container/Flex.style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseContainer } from './Container.style';
import { styled } from '@/styles';
import { styled } from '@megabrain/ui/styles';

export const BaseFlex = styled(BaseContainer, {
display: 'flex',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Container/Grid.style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from './Container';
import { styled } from '@/styles';
import { styled } from '@megabrain/ui/styles';

export const BaseGrid = styled(Container, {
display: 'grid',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Container/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CSS } from '@/styles';
import { CSS } from '@megabrain/ui/styles';
import { MouseEventHandler, ReactNode } from 'react';
import { BaseHTMLAttributes } from 'react';

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Header/Header.style.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { styled } from '@/styles';
import { styled } from '@megabrain/ui/styles';

export const BaseHeader = styled('header', {
$$color: '$colors$primary',
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BaseHeader from '@/components/Header/Header.style';
import BaseHeader from './Header.style';

export const Header: React.FC = () => {
return (
Expand Down
5 changes: 0 additions & 5 deletions packages/ui/components/HelloWorld/HelloWorld.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/components/HelloWorld/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/ui/components/WelcomeBlock/WelcomeBlock.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/ui/components/WelcomeBlock/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/ui/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export * from './HelloWorld';
export * from './WelcomeBlock';
export * from './Button';
export * from './Container';
export * from './Image';
Expand Down

0 comments on commit c9594b3

Please sign in to comment.