Make Camera app use router (#69)

* Make Camera app use router

* Remove unused hooks

* Fucking communicate messages with camera with router

* Improved sharing in messages flow

* Fix clipboard

* Removeunused imports

* improve routing helpers

* Fix bug :D

* Fix stupid thing

* Add docs to useQueryParams hook
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-02-06 22:24:50 +01:00
1 parent 447c51a07e
commit 40f9555b39
34 files changed
+481 -294

No files matched your search

+5 -7
View File
@@ -1,13 +1,11 @@
import { useRecoilValue } from 'recoil';
import { photoState } from './state';
interface IPhotos {
image: string[];
map?: any;
export interface ICameraPhoto {
id: string;
image: string;
}
export const usePhotos = (): IPhotos | null => {
const photos = useRecoilValue<IPhotos | null>(photoState.photos);
return photos;
export const usePhotos = (): ICameraPhoto[] | null => {
return useRecoilValue<ICameraPhoto[] | null>(photoState.photos);
};