Update frontend/src/components/admin/PlansTable.jsx
Browse files
frontend/src/components/admin/PlansTable.jsx
CHANGED
|
@@ -27,6 +27,7 @@ export default function PlansTable({ plans, isLoading, onEdit, onDelete }) {
|
|
| 27 |
<th className="py-2 pr-4">Billing</th>
|
| 28 |
<th className="py-2 pr-4">Price</th>
|
| 29 |
<th className="py-2 pr-4">Max Students</th>
|
|
|
|
| 30 |
<th className="py-2 pr-4">Active</th>
|
| 31 |
<th className="py-2 pr-4 text-right">Actions</th>
|
| 32 |
</tr>
|
|
@@ -47,6 +48,17 @@ export default function PlansTable({ plans, isLoading, onEdit, onDelete }) {
|
|
| 47 |
<span className="text-stone-400">👤</span>
|
| 48 |
</span>
|
| 49 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
<td className="py-2 pr-4">
|
| 51 |
<span
|
| 52 |
className={`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium border ${
|
|
|
|
| 27 |
<th className="py-2 pr-4">Billing</th>
|
| 28 |
<th className="py-2 pr-4">Price</th>
|
| 29 |
<th className="py-2 pr-4">Max Students</th>
|
| 30 |
+
<th className="py-2 pr-4">Default</th>
|
| 31 |
<th className="py-2 pr-4">Active</th>
|
| 32 |
<th className="py-2 pr-4 text-right">Actions</th>
|
| 33 |
</tr>
|
|
|
|
| 48 |
<span className="text-stone-400">👤</span>
|
| 49 |
</span>
|
| 50 |
</td>
|
| 51 |
+
<td className="py-2 pr-4">
|
| 52 |
+
{plan.is_default ? (
|
| 53 |
+
<span className="inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium bg-red-50 text-red-700 border border-red-100">
|
| 54 |
+
Default
|
| 55 |
+
</span>
|
| 56 |
+
) : (
|
| 57 |
+
<span className="inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium bg-stone-50 text-stone-500 border border-stone-200">
|
| 58 |
+
No
|
| 59 |
+
</span>
|
| 60 |
+
)}
|
| 61 |
+
</td>
|
| 62 |
<td className="py-2 pr-4">
|
| 63 |
<span
|
| 64 |
className={`inline-flex items-center rounded-full px-2 py-0.5 text-[11px] font-medium border ${
|