From 428c5d92103d2450164a3398f884aabeddc5b4ca Mon Sep 17 00:00:00 2001 From: evgeniywas Date: Sat, 10 Jun 2023 22:06:04 +0100 Subject: [PATCH] RC-2: create shared components for auth pages --- .../shared-components/AdditionalSignWays.js | 40 +++++++++++++ .../shared-components/LeftSideCanvas.js | 58 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 src/app/main/authPages/shared-components/AdditionalSignWays.js create mode 100644 src/app/main/authPages/shared-components/LeftSideCanvas.js diff --git a/src/app/main/authPages/shared-components/AdditionalSignWays.js b/src/app/main/authPages/shared-components/AdditionalSignWays.js new file mode 100644 index 0000000..c0ed8ff --- /dev/null +++ b/src/app/main/authPages/shared-components/AdditionalSignWays.js @@ -0,0 +1,40 @@ +import FuseSvgIcon from '@fuse/core/FuseSvgIcon/FuseSvgIcon'; +import { Typography } from '@mui/material'; +import Button from '@mui/material/Button'; +import { memo } from 'react'; + +function AdditionalSignWays({ divider, text }) { + return ( + <> + {divider && ( +
+
+ + {text} + +
+
+ )} + +
+ + + +
+ + ); +} + +export default memo(AdditionalSignWays); diff --git a/src/app/main/authPages/shared-components/LeftSideCanvas.js b/src/app/main/authPages/shared-components/LeftSideCanvas.js new file mode 100644 index 0000000..d437631 --- /dev/null +++ b/src/app/main/authPages/shared-components/LeftSideCanvas.js @@ -0,0 +1,58 @@ +import Avatar from '@mui/material/Avatar'; +import AvatarGroup from '@mui/material/AvatarGroup'; +import Box from '@mui/material/Box'; + +function LeftSideCanvas({ title, subtitle, text }) { + return ( + + + + + + + + +
+ {title &&
{title}
} + {subtitle && ( +
{subtitle}
+ )} +
+ + + + + + + + {text &&
{text}
} +
+
+
+ ); +} + +export default LeftSideCanvas;