Skip to content

Commit 358ffb1

Browse files
committed
Add TeamSelected component and update team selection logic
Introduces the TeamSelected component for displaying the current team. Updates PlanPanelLeft, HomePage, and PlanPage to support an isHomePage prop and refines team selection and upload handling. Also updates PlanPanelLefProps interface to include isHomePage.
1 parent c8e0405 commit 358ffb1

File tree

6 files changed

+219
-224
lines changed

6 files changed

+219
-224
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { TeamConfig } from "@/models";
2+
import { Body1, Caption1 } from "@fluentui/react-components";
3+
4+
export interface TeamSelectedProps {
5+
selectedTeam?: TeamConfig | null;
6+
styles: { [key: string]: string };
7+
}
8+
9+
const TeamSelected: React.FC<TeamSelectedProps> = ({ selectedTeam, styles }) => {
10+
return (
11+
<div className={styles.teamSelectorContent}>
12+
<Caption1 className={styles.currentTeamLabel}>
13+
Current Team
14+
</Caption1>
15+
<Body1 className={styles.currentTeamName}>
16+
{selectedTeam ? selectedTeam.name : 'No team selected'}
17+
</Body1>
18+
</div>
19+
);
20+
}
21+
export default TeamSelected;

0 commit comments

Comments
 (0)