This commit is contained in:
Manav Rathi
2024-06-03 10:48:27 +05:30
parent a90275f491
commit 69b1602f9c
3 changed files with 22 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import { WhatsNew } from "@/new/photos/components/WhatsNew";
import { CustomHead } from "@/next/components/Head";
import { setupI18n } from "@/next/i18n";
import log from "@/next/log";
@@ -128,6 +129,8 @@ export default function App({ Component, pageProps }: AppProps) {
>();
useState<DialogBoxAttributes>(null);
const [messageDialogView, setMessageDialogView] = useState(false);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [shouldShowWhatsNew, setShouldShowWhatsNew] = useState(true);
const [dialogBoxV2View, setDialogBoxV2View] = useState(false);
const [watchFolderView, setWatchFolderView] = useState(false);
const [watchFolderFiles, setWatchFolderFiles] = useState<FileList>(null);
@@ -385,6 +388,7 @@ export default function App({ Component, pageProps }: AppProps) {
onClose={closeDialogBoxV2}
attributes={dialogBoxAttributeV2}
/>
{shouldShowWhatsNew && <WhatsNew />}
<Notification
open={notificationView}
onClose={closeNotification}

View File

@@ -0,0 +1,17 @@
import { Dialog, styled, useMediaQuery } from "@mui/material";
import React from "react";
export const WhatsNew: React.FC = () => {
const fullScreen = useMediaQuery("(max-width:428px)");
return (
<Dialog open={true} fullScreen={fullScreen}>
<Contents>Hello</Contents>
</Dialog>
);
};
const Contents = styled("div")`
width: 300px;
height: 300px;
`;

View File

@@ -1,4 +1,4 @@
import * as React from "react";
import React from "react";
export const Card: React.FC = () => {
return <div>Hello</div>;