Skip to content

Commit

Permalink
Merge pull request #44 from prateek-pareek/develop-prateek-pareek
Browse files Browse the repository at this point in the history
Develop prateek pareek
  • Loading branch information
keyskull authored Jul 6, 2024
2 parents 8c12ecb + 59f8f30 commit 22c261a
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 247 deletions.
40 changes: 0 additions & 40 deletions app/(root)/campaigns/[id]/page.tsx

This file was deleted.

19 changes: 6 additions & 13 deletions app/(root)/campaigns/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
'use client'
import CampaignForm from '@/components/ui/create-campaign-form';
import { fetchChannels } from '@/lib/api';
import { useEffect, useState } from 'react';

"use client";

import React from "react";
import CampaignForm from "@/components/ui/campaigns/create"
export default function Page() {
const [channels, setChannels] = useState<any[]>([]);
useEffect(() => {
fetchChannels().then(data => setChannels(data.result));
}, []);
return (
<main className='mx-auto'>
<CampaignForm />
</main>
<CampaignForm />
);
}
};
99 changes: 0 additions & 99 deletions app/(root)/campaigns/list/page.tsx

This file was deleted.

5 changes: 1 addition & 4 deletions app/campaigns/page.tsx → app/(root)/campaigns/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
"use client";

import React from "react";
import Layout from "@/components/ui/layout/index";
import Campaigns from "@/components/ui/campaigns/campaigns";

export default function Page() {
return (
<Layout>
<Campaigns />
</Layout>
<Campaigns />
);
};
25 changes: 0 additions & 25 deletions app/(root)/campaigns/update/[id]/page.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions app/dashboard/page.tsx → app/(root)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import Dashboard from "@/components/ui/dashboard/dashboard";

export default function Page() {
return (
<Layout>
<Dashboard />
</Layout>
<Dashboard />
);
};

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import Layout from "@/components/ui/layout/index";

const Page: React.FC<any> = () => {
return (
<Layout>
<ScheduleAutomationPage />
</Layout>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ import ImportPage from "@/components/ui/report/import/import";

const Page: React.FC<any> = () => {
return (
<Layout>
<ImportPage/>
</Layout>
<ImportPage />
);
};



export default Page
7 changes: 2 additions & 5 deletions app/reports/page.tsx → app/(root)/reports/page.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
"use client";

import React from "react";
import Layout from "@/components/ui/layout/index";
import Report from "@/components/ui/report/report";

const Page: React.FC<any> = () => {
return (
<Layout>
<Report/>
</Layout>
<Report />
);
};



export default Page
12 changes: 0 additions & 12 deletions app/campaigns/create_campaigns/page.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions app/reports/layout.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions components/ui/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const Dashboard = () => {
const [startDate, setStartDate] = useState(new Date('2023-01-01').getTime());
const [endDate, setEndDate] = useState(new Date('2023-12-31').getTime());
const [filteredData, setFilteredData] = useState([]);

const handleChange = (event: React.ChangeEvent<HTMLInputElement>, isStart: boolean) => {
const newValue = +event;
if (isStart) {
Expand All @@ -23,7 +22,6 @@ const Dashboard = () => {
filterData(newValue)
};


const formatDate = (timestamp: number) => {
return format(new Date(timestamp), 'MM/dd/yyyy');
};
Expand Down

0 comments on commit 22c261a

Please sign in to comment.