mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
Feat(UI): Types added to AppContent & AppWrapper
This commit is contained in:
1 parent
af60384e74
commit
0c3c76efd5
2 files changed
+4
-2
No files matched your search
@@ -1,5 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
|
import { Box, makeStyles, Backdrop, Paper } from "@material-ui/core";
|
||||||
|
import { AppContentTypes } from '../interface/InterfaceUI';
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
wrapper: {
|
wrapper: {
|
||||||
@@ -28,7 +29,7 @@ export const AppContent = ({
|
|||||||
backdrop,
|
backdrop,
|
||||||
onClickBackdrop,
|
onClickBackdrop,
|
||||||
...props
|
...props
|
||||||
}) => {
|
}: AppContentTypes) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
return (
|
return (
|
||||||
<Paper className={classes.wrapper}>
|
<Paper className={classes.wrapper}>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { AppWrapperTypes } from '../interface/InterfaceUI';
|
||||||
|
|
||||||
export const AppWrapper = ({ children, style, handleClickAway, ...props }) => {
|
export const AppWrapper = ({ children, style, handleClickAway, ...props }: AppWrapperTypes) => {
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
{...props}
|
{...props}
|
||||||
|
|||||||
Reference in new issue
Block a user