-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Change Unsplash selector to use Lib
no issue
- Loading branch information
1 parent
5c6267f
commit ccc3a33
Showing
9 changed files
with
25 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export {default as UnsplashSearchModal} from './UnsplashSearchModal'; | ||
export {UnsplashSearchModal} from './UnsplashSearchModal'; | ||
export type {DefaultHeaderTypes, Photo as PhotoType} from './UnsplashTypes'; | ||
export {UnsplashProvider} from './api/UnsplashProvider'; | ||
import './styles/index.css'; | ||
import './styles/index.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
177 changes: 0 additions & 177 deletions
177
packages/koenig-lexical/src/components/ui/UnsplashModal.jsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/koenig-lexical/src/components/ui/file-selectors/UnsplashModal.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Portal from '../Portal'; | ||
import {UnsplashSearchModal} from '@tryghost/kg-unsplash-selector'; | ||
|
||
const UnsplashModal = ({unsplashConf, onImageInsert, onClose}) => { | ||
return ( | ||
<Portal> | ||
<UnsplashSearchModal | ||
unsplashProviderConfig={unsplashConf} | ||
onClose={onClose} | ||
onImageInsert={onImageInsert} | ||
/> | ||
</Portal> | ||
); | ||
}; | ||
|
||
export default UnsplashModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters