Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portfolio Management #39

Open
elicharlese opened this issue Feb 6, 2023 · 0 comments
Open

Portfolio Management #39

elicharlese opened this issue Feb 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@elicharlese
Copy link
Member

elicharlese commented Feb 6, 2023

import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { Card, CardContent, Typography } from '@material-ui/core';

const useStyles = makeStyles({
  root: {
    minWidth: 275,
  },
  title: {
    fontSize: 20,
    fontWeight: 'bold',
  },
  value: {
    fontSize: 36,
    fontWeight: 'bold',
    marginBottom: 10,
  },
  description: {
    fontSize: 14,
  },
});

const PortfolioOverview = ({ value, description }) => {
  const classes = useStyles();

  return (
    <Card className={classes.root}>
      <CardContent>
        <Typography className={classes.title} gutterBottom>
          Portfolio Overview
        </Typography>
        <Typography className={classes.value}>
          {value}
        </Typography>
        <Typography className={classes.description} color="textSecondary">
          {description}
        </Typography>
      </CardContent>
    </Card>
  );
};

export default PortfolioOverview;

This component is a simple card component that displays a portfolio overview with a title, value, and description. The makeStyles function is used to define the styles for the component, and the Card, CardContent, and Typography components are imported from Material-UI to create the card layout.

To use this component, simply pass in the value and description props as needed. For example, you could use it like this:

<PortfolioOverview value="$1,000,000" description="Total value of assets in the hedge portfolio" />

This would display a card with the title "Portfolio Overview", the value "$1,000,000", and the description "Total value of assets in the hedge portfolio".

@elicharlese elicharlese added the bug Something isn't working label Feb 6, 2023
@elicharlese elicharlese added this to the Front-End base for all dapps in Framer milestone Feb 6, 2023
@elicharlese elicharlese self-assigned this Feb 6, 2023
@elicharlese elicharlese removed this from the Front-End base for all dapps in Framer milestone Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant