introducing redux and fixing stuff
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import React from "react";
|
||||
import { WiredCard as Card } from "wired-elements-react";
|
||||
import {CardWrapper} from "./styled";
|
||||
|
||||
const WiredCard: React.FC = ({ children }) => {
|
||||
var childrenWithType = children as HTMLCollection & React.ReactNode;
|
||||
return <Card>{childrenWithType}</Card>;
|
||||
interface IWiredCard {
|
||||
elevation?: number;
|
||||
}
|
||||
const WiredCard: React.FC<IWiredCard> = ({ children, elevation}) => {
|
||||
var childrenWithType = (<CardWrapper>{children}</CardWrapper>) as HTMLCollection & React.ReactNode;
|
||||
return <Card elevation={elevation}>{childrenWithType}</Card>;
|
||||
};
|
||||
|
||||
export default WiredCard;
|
||||
|
||||
Reference in New Issue
Block a user