Skip to content

Commit 15a85ec

Browse files
committed
clean up
1 parent febc79a commit 15a85ec

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

apps/canvas/widget/feed/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ return (
157157
<Container>
158158
<div className="d-flex justify-content-between align-items-center mb-3">
159159
<h3>every {type}</h3>
160-
<div>
160+
{/* <div>
161161
<button className="classic me-2">
162162
<i className="bi bi-upload" />
163163
</button>
164164
<button className="classic">
165165
<i className="bi bi-gear" />
166166
</button>
167-
</div>
167+
</div> */}
168168
</div>
169169
<Widget
170170
src="/*__@appAccount__*//widget/ItemFeed"

apps/canvas/widget/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ const hyperfile = JSON.parse(Social.get(path, "final") || "null");
2222
let data; // what is an empty snapshot?
2323

2424
if (hyperfile.adapter) {
25-
const { get } = VM.require(hyperfile.adapter) || (() => {});
25+
const { get } = VM.require(hyperfile.adapter) || (() => {}); // this is like getting data from the remote
2626
if (get) {
2727
data = get(hyperfile.reference) || null;
28+
// get ref from local storage
29+
// if ref in local storage is !== to current, then we want to merge
30+
// old and new snapshot
2831
} else {
2932
return <p>{`Loading or adapter not found : ${hyperfile.adapter}`}</p>;
3033
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ return (
1111
props={{
1212
accountId: creatorId,
1313
tooltip: true,
14-
hideAccountId: true,
1514
hideCheckmark: true
1615
}}
1716
/>{"/" + thingId}

src/components/custom/tldraw/ShareZone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function ShareZone({ path }) {
2626
return (
2727
<Widget
2828
key={JSON.stringify(getSelectedShapeIds)}
29-
src="everycanvas.near/widget/sharezone"
29+
src="everycanvas.near/widget/tldraw.ShareZone"
3030
props={{
3131
getSnapshot: getSnapshot,
3232
getSelectedShapes: getSelectedShapes,

src/components/custom/tldraw/TopZone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function TopZone({ path }) {
99
<>
1010
<Widget
1111
key={`${path}-topzone`}
12-
src="everycanvas.near/widget/topzone"
12+
src="everycanvas.near/widget/tldraw.TopZone"
1313
props={{ path: path }}
1414
config={{
1515
redirectMap: redirectMapStore.redirectMap,

0 commit comments

Comments
 (0)