Skip to content

Commit 5d0f8ce

Browse files
committed
RTL Widget
1 parent 712ff57 commit 5d0f8ce

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Card from "components/card";
2+
3+
const Widget = ({ icon, title, subtitle }) => {
4+
return (
5+
<Card extra="!flex-row flex-grow items-center rounded-[20px]">
6+
<div className="mr-4 flex h-[90px] w-auto flex-row items-center">
7+
<div className="rounded-full bg-lightPrimary p-3 dark:bg-navy-700">
8+
<span className="flex items-center text-brand-500 dark:text-white">
9+
{icon}
10+
</span>
11+
</div>
12+
</div>
13+
14+
<div className="h-50 mr-4 flex w-auto flex-col justify-center">
15+
<p className="font-dm text-sm font-medium text-gray-600">{title}</p>
16+
<h4 className="text-xl font-bold text-navy-700 dark:text-white">
17+
{subtitle}
18+
</h4>
19+
</div>
20+
</Card>
21+
);
22+
};
23+
24+
export default Widget;

src/views/rtl/default/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { MdBarChart, MdDashboard } from "react-icons/md";
88

99
import { columnsDataCheck, columnsDataComplex } from "./variables/columnsData";
1010

11-
import Widget from "components/widget/Widget";
12-
import CheckTable from "views/admin/default/components/CheckTable";
13-
import ComplexTable from "views/admin/default/components/ComplexTable";
14-
import DailyTraffic from "views/admin/default/components/DailyTraffic";
15-
import TaskCard from "views/admin/default/components/TaskCard";
11+
import Widget from "views/rtl/default/components/Widget";
12+
import CheckTable from "views/rtl/default/components/CheckTable";
13+
import ComplexTable from "views/rtl/default/components/ComplexTable";
14+
import DailyTraffic from "views/rtl/default/components/DailyTraffic";
15+
import TaskCard from "views/rtl/default/components/TaskCard";
1616
import tableDataCheck from "./variables/tableDataCheck.json";
1717
import tableDataComplex from "./variables/tableDataComplex.json";
1818

0 commit comments

Comments
 (0)