-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove not-implemented box from sticker/emoji messages (#19255)
* feat: replaced old emoji component with new one * feat: replaced old sticker component with the new one * ref: pass only url to sticker * fix: renamed ns and passing only needed props * fix: destructuring instead of select-keys & assoc * fix: formatting
- Loading branch information
Showing
6 changed files
with
70 additions
and
53 deletions.
There are no files selected for viewing
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
10 changes: 10 additions & 0 deletions
10
src/status_im/contexts/chat/messenger/messages/content/emoji_message/style.cljs
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,10 @@ | ||
(ns status-im.contexts.chat.messenger.messages.content.emoji-message.style) | ||
|
||
(defn emoji-container | ||
[margin-top] | ||
{:flex-direction :row | ||
:margin-top margin-top}) | ||
|
||
(def emoji-text | ||
{:font-size 36 | ||
:line-height 42}) |
10 changes: 10 additions & 0 deletions
10
src/status_im/contexts/chat/messenger/messages/content/emoji_message/view.cljs
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,10 @@ | ||
(ns status-im.contexts.chat.messenger.messages.content.emoji-message.view | ||
(:require [react-native.core :as rn] | ||
[status-im.contexts.chat.messenger.messages.content.emoji-message.style :as style])) | ||
|
||
(defn view | ||
[{:keys [content last-in-group? pinned in-pinned-view?]}] | ||
(let [margin-top (if (or last-in-group? in-pinned-view? pinned) 8 0)] | ||
[rn/view {:style (style/emoji-container margin-top)} | ||
[rn/text {:style style/emoji-text} | ||
(:text content)]])) |
10 changes: 10 additions & 0 deletions
10
src/status_im/contexts/chat/messenger/messages/content/sticker_message/view.cljs
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,10 @@ | ||
(ns status-im.contexts.chat.messenger.messages.content.sticker-message.view | ||
(:require [react-native.core :as rn] | ||
[react-native.fast-image :as fast-image])) | ||
|
||
(defn view | ||
[{:keys [url]}] | ||
[rn/view {:style {:margin-top 6 :margin-bottom 4}} | ||
[fast-image/fast-image | ||
{:style {:width 120 :height 120} | ||
:source {:uri (str url "&download=true")}}]]) |
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
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