Skip to content

Commit

Permalink
adding props
Browse files Browse the repository at this point in the history
  • Loading branch information
bwebs committed Jun 28, 2024
1 parent 69b2afb commit 1e0f6ce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/react-hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const MyInbox = () => {
<Container>
{inbox.messages.map((message) => {
return (
<Message>
<Message message={message}>
{message.read ? (
<>
<button onClick={handleUnreadMessage(message)}>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-hooks/docs/2.events.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const MyInbox = () => {
<Container>
{inbox.messages.map((message) => {
return (
<Message>
<Message message={message}>
{message.read ? (
<>
<button onClick={handleUnreadMessage(message)}>
Expand Down
4 changes: 2 additions & 2 deletions packages/react-inbox/src/components/Messages2.0/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ const Messages: React.ForwardRefExoticComponent<
renderMessage(message)
) : (
<Message
{...message}
message={message}
isMobile={isMobile}
defaultIcon={defaultIcon}
formatDate={formatDate}
Expand Down Expand Up @@ -389,7 +389,7 @@ const Messages: React.ForwardRefExoticComponent<
renderMessage(message)
) : (
<Message
{...message}
message={message}
defaultIcon={defaultIcon}
formatDate={formatDate}
isMessageFocused={focusedMessageId === message.messageId}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React, { useMemo, useEffect, useState } from "react";
import {
Inbox,
IInboxMessagePreview,
IInboxMessage,
} from "@trycourier/client-graphql";
import { Inbox } from "@trycourier/client-graphql";
import styled from "styled-components";
import { IInboxMessage, IInboxMessagePreview } from "@trycourier/core";

const Styled = styled.div`
display: flex;
Expand Down

0 comments on commit 1e0f6ce

Please sign in to comment.