Skip to content
Snippets Groups Projects
Commit 4eb61503 authored by Sjoerd's avatar Sjoerd
Browse files

fix: user management table dark mode

parent d205888e
No related branches found
Tags v1.111.1
1 merge request!319fix: user management table dark mode
Pipeline #141335 passed
...@@ -64,9 +64,9 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro ...@@ -64,9 +64,9 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro
return ( return (
<div className="mt-2 w-full overflow-x-auto"> <div className="mt-2 w-full overflow-x-auto">
<table className="min-w-full bg-white border border-gray-300 rounded-md"> <table className="min-w-full bg-light border border-secondary-300 rounded-md">
<thead> <thead>
<tr className="bg-gray-100 border-b"> <tr className="bg-secondary-100 border-b">
{fieldConfigs.map((field) => ( {fieldConfigs.map((field) => (
<th key={field.key.toString()} className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider"> <th key={field.key.toString()} className="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">
{field.label} {field.label}
...@@ -79,7 +79,7 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro ...@@ -79,7 +79,7 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro
{data.map((item, index) => ( {data.map((item, index) => (
<tr key={index} className="border-b rounded-md"> <tr key={index} className="border-b rounded-md">
{fieldConfigs.map((field) => ( {fieldConfigs.map((field) => (
<td key={field.key.toString()} className="px-6 py-4 text-sm text-gray-700"> <td key={field.key.toString()} className="px-6 py-4 text-sm text-light-700">
{editingIndex === index ? ( {editingIndex === index ? (
field.type === 'dropdown' ? ( field.type === 'dropdown' ? (
<Input <Input
...@@ -103,7 +103,7 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro ...@@ -103,7 +103,7 @@ export const TableUI = <T extends Record<string, any>>({ data, fieldConfigs, dro
)} )}
</td> </td>
))} ))}
<td className="px-6 py-4 text-sm text-gray-700"> <td className="px-6 py-4 text-sm text-secondary-700">
<div className="flex space-x-2"> <div className="flex space-x-2">
{editingIndex === index ? ( {editingIndex === index ? (
<> <>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment