Skip to content

Commit 585b2e6

Browse files
committed
comments for aws
1 parent 69688f4 commit 585b2e6

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

app/src/components/marketplace/MarketplaceCardContainer.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import React from 'react';
55

66

77
const MarketplaceCardContainer = ({displayProjects}) => {
8+
// need a function to get all images stored in aws images
9+
// drill down the image as a variable
810

911

1012
return (

app/src/components/top/NavBar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import logo from '../../public/icons/win/logo.png';
1010
import { useSelector, useDispatch } from 'react-redux';
1111
import { publishProject } from '../../helperFunctions/projectGetSaveDel';
1212
import PublishModal from './PublishModal';
13+
import html2canvas from 'html2canvas';
1314

1415

1516
const NavBar = () => {
@@ -68,6 +69,10 @@ const NavBar = () => {
6869
setPublishModalOpen(true);
6970
return;
7071
}
72+
73+
// need a way to grab the image and store the image in aws, tied to click of publish
74+
// need to store a ref on the demorender component, maybe in redux?
75+
// on publish, we need to find the component, take a screenshot, and store it in aws
7176

7277

7378
publishProject(state, projectName)

package-lock.json

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
"file-saver": "^2.0.5",
138138
"fs": "^0.0.1-security",
139139
"graphql": "^16.6.0",
140+
"html2canvas": "^1.4.1",
140141
"identity-obj-proxy": "^3.0.0",
141142
"js-cookie": "^3.0.1",
142143
"jszip": "^3.10.1",

0 commit comments

Comments
 (0)