forked from aws-samples/amplify-next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carsten Koch
committed
Dec 9, 2024
1 parent
5ada6af
commit fcb3d0f
Showing
5 changed files
with
90 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import useMrrLatestUpload from "@/api/useLatestUploadsWork"; | ||
import ImportProjectData from "@/components/crm/import-project-data"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import { FC } from "react"; | ||
|
||
interface ProcessCrmUpdatesProps { | ||
mutateSfdc: ReturnType<typeof useMrrLatestUpload>["mutateSfdc"]; | ||
} | ||
|
||
const ProcessCrmUpdates: FC<ProcessCrmUpdatesProps> = ({ mutateSfdc }) => ( | ||
<> | ||
<PlanWeekAction label="Upload Salesforce Opportunities" /> | ||
<ImportProjectData reloader={mutateSfdc} /> | ||
</> | ||
); | ||
|
||
export default ProcessCrmUpdates; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import useMrrLatestUpload from "@/api/useLatestUploadsWork"; | ||
import InstructionsUploadMrr from "@/components/analytics/instructions/instructions-upload-mrr"; | ||
import { MrrFilterProvider } from "@/components/analytics/useMrrFilter"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import { Accordion } from "@/components/ui/accordion"; | ||
import { FC } from "react"; | ||
|
||
interface ProcessFinancialUpdatesProps { | ||
mutateMrr: ReturnType<typeof useMrrLatestUpload>["mutateMrr"]; | ||
} | ||
|
||
const ProcessFinancialUpdates: FC<ProcessFinancialUpdatesProps> = ({ | ||
mutateMrr, | ||
}) => ( | ||
<> | ||
<PlanWeekAction label="Upload Customer Financials" /> | ||
<MrrFilterProvider> | ||
<Accordion type="single" collapsible> | ||
<InstructionsUploadMrr reloader={mutateMrr} /> | ||
</Accordion> | ||
</MrrFilterProvider> | ||
</> | ||
); | ||
|
||
export default ProcessFinancialUpdates; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ProcessInboxItem from "@/components/inbox/ProcessInboxItem"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
|
||
const ProcessInbox = () => ( | ||
<> | ||
<PlanWeekAction label="Process Inbox Items" /> | ||
<ProcessInboxItem /> | ||
</> | ||
); | ||
|
||
export default ProcessInbox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { PlanningProjectFilterProvider } from "@/components/planning/usePlanningProjectFilter"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import PlanWeekContextNotWork from "@/components/planning/week/PlanWeekContextNotWork"; | ||
import PlanWeekContextWork from "@/components/planning/week/PlanWeekContextWork"; | ||
import PlanWeekFilter from "@/components/planning/week/PlanWeekFilter"; | ||
import PlanWeekStatistics from "@/components/planning/week/PlanWeekStatistics"; | ||
import { useContextContext } from "@/contexts/ContextContext"; | ||
import { FC } from "react"; | ||
|
||
interface ProcessProjectsProps {} | ||
|
||
const ProcessProjects: FC<ProcessProjectsProps> = (props) => { | ||
const { context } = useContextContext(); | ||
return ( | ||
<> | ||
<PlanWeekAction label="Review Projects" /> | ||
<PlanningProjectFilterProvider> | ||
<PlanWeekStatistics /> | ||
|
||
<PlanWeekFilter /> | ||
|
||
{context !== "work" && <PlanWeekContextNotWork />} | ||
{context === "work" && <PlanWeekContextWork />} | ||
</PlanningProjectFilterProvider> | ||
</> | ||
); | ||
}; | ||
|
||
export default ProcessProjects; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters