@linktr.ee/messaging-react 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +195 -199
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.tsx +14 -14
package/package.json
CHANGED
|
@@ -114,20 +114,20 @@ const CustomChannelHeader: React.FC<{
|
|
|
114
114
|
|
|
115
115
|
return (
|
|
116
116
|
<div className="@container">
|
|
117
|
-
<div className="
|
|
117
|
+
<div className="grid grid-cols-[1fr_auto_1fr] w-full items-center @lg:hidden">
|
|
118
118
|
<div className="flex items-center gap-2">
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
119
|
+
{showBackButton && (
|
|
120
|
+
<button
|
|
121
|
+
className={classNames(
|
|
122
|
+
'size-10 rounded-full bg-[#F1F0EE] flex items-center justify-center'
|
|
123
|
+
)}
|
|
124
|
+
onClick={onBack || (() => {})}
|
|
125
|
+
type="button"
|
|
126
|
+
aria-label="Back to conversations"
|
|
127
|
+
>
|
|
128
|
+
<ArrowLeftIcon className="size-5 text-black/90" />
|
|
129
|
+
</button>
|
|
130
|
+
)}
|
|
131
131
|
</div>
|
|
132
132
|
<div className="flex flex-col gap-1 items-center">
|
|
133
133
|
<Avatar
|
|
@@ -140,7 +140,7 @@ const CustomChannelHeader: React.FC<{
|
|
|
140
140
|
{participantName}
|
|
141
141
|
</h1>
|
|
142
142
|
</div>
|
|
143
|
-
<div className="flex items-center gap-2">
|
|
143
|
+
<div className="flex justify-end items-center gap-2">
|
|
144
144
|
{showStarButton && (
|
|
145
145
|
<button
|
|
146
146
|
className="size-10 rounded-full bg-[#F1F0EE] flex items-center justify-center"
|