Merge branch 'cast' of github.com:ente-io/photos-web into cast
This commit is contained in:
commit
d94ea221c7
4 changed files with 18 additions and 21 deletions
|
@ -1,5 +1,4 @@
|
|||
import type { AppProps } from 'next/app';
|
||||
|
||||
import 'styles/global.css';
|
||||
import { ThemeProvider, CssBaseline } from '@mui/material';
|
||||
import { getTheme } from '@ente/shared/themes';
|
||||
|
|
|
@ -53,22 +53,20 @@ export default function CollectionInfoWithOptions({
|
|||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<CollectionInfoBarWrapper>
|
||||
<SpaceBetweenFlex>
|
||||
<CollectionInfo
|
||||
name={name}
|
||||
fileCount={fileCount}
|
||||
endIcon={<EndIcon type={type} />}
|
||||
<CollectionInfoBarWrapper>
|
||||
<SpaceBetweenFlex>
|
||||
<CollectionInfo
|
||||
name={name}
|
||||
fileCount={fileCount}
|
||||
endIcon={<EndIcon type={type} />}
|
||||
/>
|
||||
{shouldShowOptions(type) && (
|
||||
<CollectionOptions
|
||||
{...props}
|
||||
collectionSummaryType={type}
|
||||
/>
|
||||
{shouldShowOptions(type) && (
|
||||
<CollectionOptions
|
||||
{...props}
|
||||
collectionSummaryType={type}
|
||||
/>
|
||||
)}
|
||||
</SpaceBetweenFlex>
|
||||
</CollectionInfoBarWrapper>
|
||||
</>
|
||||
)}
|
||||
</SpaceBetweenFlex>
|
||||
</CollectionInfoBarWrapper>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -109,10 +109,9 @@ export default function AlbumCastDialog(props: Props) {
|
|||
return;
|
||||
}
|
||||
const session = instance.getCurrentSession();
|
||||
console.log(session);
|
||||
session.addMessageListener(
|
||||
'urn:x-cast:pair-request',
|
||||
(namespace, message) => {
|
||||
(_, message) => {
|
||||
const data = message;
|
||||
const obj = JSON.parse(data);
|
||||
const code = obj.code;
|
||||
|
|
|
@ -140,6 +140,7 @@ export default function Collections(props: Iprops) {
|
|||
const closeAllCollections = () => setAllCollectionView(false);
|
||||
const openAllCollections = () => setAllCollectionView(true);
|
||||
const closeCollectionShare = () => setCollectionShareModalView(false);
|
||||
const closeAlbumCastDialog = () => setShowAlbumCastDialog(false);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
@ -176,9 +177,9 @@ export default function Collections(props: Iprops) {
|
|||
collection={activeCollection}
|
||||
/>
|
||||
<AlbumCastDialog
|
||||
currentCollection={props.activeCollection}
|
||||
currentCollection={activeCollection}
|
||||
show={showAlbumCastDialog}
|
||||
onHide={() => setShowAlbumCastDialog(false)}
|
||||
onHide={closeAlbumCastDialog}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue