Skip to content

Commit

Permalink
feat: create clean exports
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Apr 24, 2020
1 parent 15ddd0a commit dbcebed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions button.js
@@ -0,0 +1 @@
export { DocSearchButton } from './dist/esm/DocSearchButton.js';
1 change: 1 addition & 0 deletions modal.js
@@ -0,0 +1 @@
export { DocSearchModal } from './dist/esm/DocSearchModal.js';
2 changes: 1 addition & 1 deletion src/DocSearchButton.tsx
Expand Up @@ -17,7 +17,7 @@ function isAppleDevice() {
return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);
}

export function SearchButton(props: SearchButtonProps) {
export function DocSearchButton(props: SearchButtonProps) {
const [key, setKey] = useState(() =>
isAppleDevice() ? ACTION_KEY_APPLE : ACTION_KEY_DEFAULT
);
Expand Down
1 change: 1 addition & 0 deletions style.js
@@ -0,0 +1 @@
import './dist/esm/style.css';

0 comments on commit dbcebed

Please sign in to comment.