I have a problem.
i created Review.jsx file. i use rafce and I wrote the code. I want to import it to another file, but it writes a problem. 'Review' is not exported from './Review'
in another file code from import - import { Review } from './Review';
Review and this file in the same folder
Review.jsx Code
import React from 'react';
import { Typography, List, ListItem, ListItemText } from '@material-ui/core';
const Review = ({ checkoutToken }) => {
return (
<>
<Typography variant="h6" gutterBottom>Order Summary</Typography>
<List disablePadding>
{checkoutToken.live.line_items.map((product) => (
<ListItem style={{padding: '10px 0' }} key={product.name}>
<ListItemText primary={product.name} secondary={`Quanity: ${product.quanity}`} />
<Typography variant="body2">{product.line_total.formatted_with_symbol}</Typography>
</ListItem>
))}
<ListItem style={{padding: '10px 0' }}>
<ListItemText primary="Total" />
<Typography variant="subtotal" style={{fontWeight: 700}}>
{checkoutToken.live.subtotal.formatted_with_symbol}
</Typography>
</ListItem>
</List>
</>
)
}
export default Review;