Skip to content

Commit 4c94dd0

Browse files
committed
Update drinks, food, cigarette flow and add price migrations
1 parent 29cafff commit 4c94dd0

36 files changed

Lines changed: 3417 additions & 328 deletions

App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const App: React.FC = () => {
5151
<Route path="notifications" element={<NotificationsPage />} />
5252
<Route path="chat" element={<ChatPage />} />
5353
<Route path="profile" element={<ProfilePage />} />
54+
<Route path="profile/:userId" element={<ProfilePage />} />
5455
</Route>
5556

5657
<Route path="*" element={<Navigate to="/" />} />

pages/ChatPage.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ const ChatPage: React.FC = () => {
179179
className={`flex w-full group ${isMe ? 'justify-end' : 'justify-start'}`}
180180
>
181181
<div className={`flex gap-3 max-w-[85%] ${isMe ? 'flex-row-reverse' : 'flex-row'}`}>
182-
<div className="w-8 flex-shrink-0 self-end mb-1">
182+
<div
183+
className="w-8 flex-shrink-0 self-end mb-1 cursor-pointer hover:opacity-80 transition-opacity"
184+
onClick={() => !isMe && (window.location.href = `/dashboard/profile/${msg.user_id}`)}
185+
>
183186
{showAvatar && (
184187
<img
185188
src={msg.profiles.profile_pic_url || "https://api.dicebear.com/7.x/thumbs/svg?seed=default"}
@@ -191,7 +194,10 @@ const ChatPage: React.FC = () => {
191194

192195
<div className="relative flex flex-col space-y-1">
193196
{!isMe && showAvatar && (
194-
<span className="text-[10px] font-black text-zinc-500 uppercase tracking-tighter ml-1">
197+
<span
198+
className="text-[10px] font-black text-zinc-500 uppercase tracking-tighter ml-1 cursor-pointer hover:text-zinc-400 transition-colors"
199+
onClick={() => window.location.href = `/dashboard/profile/${msg.user_id}`}
200+
>
195201
{msg.profiles.name}
196202
</span>
197203
)}

0 commit comments

Comments
 (0)