Skip to content

Commit

Permalink
fix: Remove Use Overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-moon committed Jul 31, 2022
1 parent f5ca935 commit 772bbcc
Show file tree
Hide file tree
Showing 25 changed files with 95 additions and 226 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"author": "Lubycon",
"dependencies": {
"@emotion/react": "^11.4.0",
"@lubycon/react": "^1.18.3",
"@lubycon/react": "^1.26.2",
"@yarnpkg/pnpify": "^3.0.0-rc.10",
"classnames": "^2.2.6",
"resize-observer-polyfill": "^1.5.1"
Expand Down
6 changes: 1 addition & 5 deletions src/components/QDProvider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Fragment, ReactNode } from 'react';
import { PortalProvider } from '../../contexts/Portal';
import { OverlayProvider } from '../../contexts/Overlay';
import { css, Global } from '@emotion/react';

interface Props {
Expand All @@ -18,9 +16,7 @@ export function QDProvider({ children }: Props) {
}
`}
/>
<PortalProvider>
<OverlayProvider>{children}</OverlayProvider>
</PortalProvider>
{children}
</Fragment>
);
}
65 changes: 0 additions & 65 deletions src/contexts/Overlay/OverlayContext.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions src/contexts/Overlay/StateReacter.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/contexts/Overlay/index.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/contexts/Overlay/types.ts

This file was deleted.

64 changes: 0 additions & 64 deletions src/contexts/Overlay/useOverlay.tsx

This file was deleted.

36 changes: 0 additions & 36 deletions src/contexts/Portal.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ export { Container } from './components/Container';
export { default as Text } from './components/Text';
export { default as Txt } from './components/Text';
export { QDProvider } from './components/QDProvider';
export { Portal } from './contexts/Portal';
export { Shadow } from './components/Shadow';
export { Spacing } from './components/Spacing';
export { default as Skeleton } from './components/Skeleton';
export { useOverlay } from './contexts/Overlay';
export { default as Flex } from './components/Flex';
export { default as Stack } from './components/Stack';
export { CombineElementProps, Combine } from './types/utils';
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Hooks/useOverlay/components.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useOverlay } from 'src';
import { useOverlay } from '@lubycon/react';

export function OverlayStory() {
const { open } = useOverlay();
Expand Down
Loading

0 comments on commit 772bbcc

Please sign in to comment.