-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #415 from xmtp-labs/dev
Dev --> Main
- Loading branch information
Showing
13 changed files
with
534 additions
and
183 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/component-library/components/EffectDialog/EffectDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); |
Oops, something went wrong.
3d60706
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
xmtp-inbox-web – ./
xmtp-inbox-web-git-main-xmtp-labs.vercel.app
xmtp-inbox-web.vercel.app
xmtp-inbox-web-xmtp-labs.vercel.app
www.xmtp.chat
xmtp.chat
demo.xmtp.chat