Skip to content

Commit

Permalink
Merge pull request #415 from xmtp-labs/dev
Browse files Browse the repository at this point in the history
Dev --> Main
  • Loading branch information
daria-github authored Jan 3, 2024
2 parents 1bed2ef + abc8cae commit 3d60706
Show file tree
Hide file tree
Showing 13 changed files with 534 additions and 183 deletions.
44 changes: 32 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@xmtp/content-type-reaction": "^1.1.3",
"@xmtp/content-type-remote-attachment": "^1.1.4",
"@xmtp/content-type-reply": "^1.1.5",
"@xmtp/experimental-content-type-screen-effect": "^1.0.2",
"@xmtp/react-sdk": "^3.0.0",
"buffer": "^6.0.3",
"date-fns": "^2.29.3",
Expand Down
31 changes: 31 additions & 0 deletions src/component-library/components/EffectDialog/EffectDialog.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { EffectType } from "@xmtp/experimental-content-type-screen-effect";

export const EffectDialog = ({
handleSendEffect,
}: {
handleSendEffect: (effect: EffectType) => void;
}) => (
<dialog
open
style={{
width: 200,
height: 150,
border: "1px dotted indigo",
borderRadius: "16px",
position: "absolute",
bottom: "200px",
marginLeft: "80%",
display: "flex",
alignSelf: "flex-end",
}}>
<div className="w-full flex flex-col justify-around items-center text-md">
<b>Send with effect:</b>
<button type="button" onClick={() => handleSendEffect("SNOW")}>
**Let it Snow**
</button>
<button type="button" onClick={() => handleSendEffect("RAIN")}>
Make it Rain XMTP!
</button>
</div>
</dialog>
);
Loading

1 comment on commit 3d60706

@vercel
Copy link

@vercel vercel bot commented on 3d60706 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.