Skip to content

Commit

Permalink
Move history card to it's own file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelclapham committed Mar 31, 2024
1 parent 45a5c94 commit 0557071
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
13 changes: 13 additions & 0 deletions src/feature/history/HistoryCard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { IonCard, IonCardHeader, IonCardTitle, IonCardContent } from "@ionic/react";
import React from "react";

export const HistoryCard: React.FC<{}> = () => {
return <IonCard>
<IonCardHeader>
<IonCardTitle>History</IonCardTitle>
</IonCardHeader>
<IonCardContent>
<p>Shared content will show up here .</p>
</IonCardContent>
</IonCard>;
};
16 changes: 7 additions & 9 deletions src/feature/session/SessionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { WSClient } from "../../WSClient";
import { SessionMessage } from "./SessionMessage";
import { SessionActionsList } from "../session-actions/SessionActionsList";
import { ClientsCard } from "../clients/ClientsCard";
import { HistoryCard } from "../history/HistoryCard";

export interface SessionPageProps {
sessionId: string | undefined;
Expand Down Expand Up @@ -57,16 +58,13 @@ export class SessionPage extends React.Component<
<ClientsCard
clientMap={this.props.clientMap}
ownerId={this.props.sessionOwnerId}
addClientClicked={() => console.log("add client from clients card to be implemented")}
addClientClicked={() => {
// TODO: Implement opening add client modal from session page
console.log("add client from clients card to be implemented")
}}
></ClientsCard>
<IonCard>
<IonCardHeader>
<IonCardTitle>History</IonCardTitle>
</IonCardHeader>
<IonCardContent>
<p>Shared content will show up here .</p>
</IonCardContent>
</IonCard>
{/* TODO: Show received messages / content in history card */}
<HistoryCard></HistoryCard>
<IonCard>
<IonCardHeader>
<IonCardTitle>Share</IonCardTitle>
Expand Down

0 comments on commit 0557071

Please sign in to comment.