Skip to content

Commit 8ffad16

Browse files
committed
add back button
1 parent 9a514e8 commit 8ffad16

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

src/frontend_react/src/components/content/PlanPanelLeft.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PanelLeft from "@/coral/components/Panels/PanelLeft";
22
import PanelLeftToolbar from "@/coral/components/Panels/PanelLeftToolbar";
33
import { Button, Spinner, Toast, ToastBody, ToastTitle, Tooltip, useToastController } from "@fluentui/react-components";
4-
import { Add20Regular, ErrorCircle20Regular } from "@fluentui/react-icons";
4+
import { Add20Regular, ChatAdd20Regular, ErrorCircle20Regular } from "@fluentui/react-icons";
55
import TaskList from "./TaskList";
66
import { useCallback, useEffect, useState } from "react";
77
import { useNavigate } from "react-router-dom";
@@ -100,6 +100,16 @@ const PlanPanelLeft: React.FC<PlanPanelLefProps> = ({
100100
/>
101101
</Tooltip>
102102
</PanelLeftToolbar>
103+
<br />
104+
<div
105+
className="tab"
106+
style={{ display: "flex", alignItems: "center", gap: "8px", padding: "8px 8px", cursor: "pointer", margin: '0 8px' }}
107+
onClick={onNewTaskButton}
108+
>
109+
<ChatAdd20Regular />
110+
New task
111+
</div>
112+
<br />
103113
{plansLoading && (!inProgressTasks.length && !completedTasks.length) ? (
104114
<div style={{ padding: '20px', textAlign: 'center' }}>
105115
<Spinner size="medium" label="Loading tasks..." />

src/frontend_react/src/models/homeInput.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ export const quickTasks: QuickTask[] = [
1111
{
1212
id: "onboard",
1313
title: "Onboard employee",
14-
description: "Onboard a new employee, Jessica",
14+
description: "Onboard a new employee, Jessica Smith.",
1515
icon: <Person20Regular />,
1616
},
1717
{
1818
id: "mobile",
1919
title: "Mobile plan query",
20-
description: "Ask about roaming plans prior to heading overseas",
20+
description: "Ask about roaming plans prior to heading overseas.",
2121
icon: <Phone20Regular />,
2222
},
2323
{
2424
id: "addon",
2525
title: "Buy add-on",
26-
description: "Enable roaming on mobile plan, starting next week",
26+
description: "Enable roaming on mobile plan, starting next week.",
2727
icon: <ShoppingBag20Regular />,
2828
},
2929
{
3030
id: "press",
3131
title: "Draft a press release",
32-
description: "Write a press release about our current products",
32+
description: "Write a press release about our current products.",
3333
icon: <DocumentEdit20Regular />,
3434
},
3535
];

0 commit comments

Comments
 (0)