Skip to content

Commit 0b43df9

Browse files
SaraVieiraCompuIves
authored andcommitted
Adds pick button in sadbox (codesandbox#1332)
* add CODE_OF_CONDUCT * add pick button in sandbox
1 parent 93304c6 commit 0b43df9

File tree

1 file changed

+20
-0
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Header

1 file changed

+20
-0
lines changed

packages/app/src/app/pages/Sandbox/Editor/Header/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,26 @@ const Header = ({ store, signals }) => {
5252
}
5353
/>
5454

55+
{store.user.curatorAt ? (
56+
<Action
57+
title="Pick"
58+
Icon={() => (
59+
<span role="img" aria-label="star">
60+
61+
</span>
62+
)}
63+
onClick={() => {
64+
signals.explore.pickSandboxModal({
65+
details: {
66+
id: sandbox.id,
67+
title: sandbox.title,
68+
description: sandbox.description,
69+
},
70+
});
71+
}}
72+
/>
73+
) : null}
74+
5575
{(sandbox.owned || !store.editor.isAllModulesSynced) && (
5676
<Action
5777
onClick={

0 commit comments

Comments
 (0)