Dark mod düzenlemesi
This commit is contained in:
parent
312f784e3e
commit
f02a0f8830
2 changed files with 6 additions and 4 deletions
|
|
@ -1350,7 +1350,7 @@ public class ListFormSeeder_Saas : IDataSeedContributor, ITransientDependency
|
||||||
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.ContactTitle)),
|
DeleteCommand = DefaultDeleteCommand(nameof(TableNameEnum.ContactTitle)),
|
||||||
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
DeleteFieldsDefaultValueJson = DefaultDeleteFieldsDefaultValueJson(),
|
||||||
PagerOptionJson = DefaultPagerOptionJson,
|
PagerOptionJson = DefaultPagerOptionJson,
|
||||||
EditingOptionJson = DefaultEditingOptionJson(listFormName, 400, 200, true, true, true, true, false),
|
EditingOptionJson = DefaultEditingOptionJson(listFormName, 400, 400, true, true, true, true, false),
|
||||||
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
|
EditingFormJson = JsonSerializer.Serialize(new List<EditingFormDto>
|
||||||
{
|
{
|
||||||
new() {
|
new() {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { GridExtraFilterState } from './Utils'
|
import { GridExtraFilterState } from './Utils'
|
||||||
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
|
|
||||||
export function GridExtraFilterToolbar({
|
export function GridExtraFilterToolbar({
|
||||||
filters,
|
filters,
|
||||||
|
|
@ -12,7 +13,8 @@ export function GridExtraFilterToolbar({
|
||||||
}) {
|
}) {
|
||||||
// input için geçici state tutuyoruz
|
// input için geçici state tutuyoruz
|
||||||
const [inputValues, setInputValues] = useState<Record<string, string>>({})
|
const [inputValues, setInputValues] = useState<Record<string, string>>({})
|
||||||
|
const { translate } = useLocalization()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
{filters.map((fs) => {
|
{filters.map((fs) => {
|
||||||
|
|
@ -42,11 +44,11 @@ export function GridExtraFilterToolbar({
|
||||||
|
|
||||||
{fs.controlType === 'Select' ? (
|
{fs.controlType === 'Select' ? (
|
||||||
<select
|
<select
|
||||||
className="border rounded px-0.5 py-0.5"
|
className="border rounded px-1.5 py-1.5 dark:bg-gray-700 dark:text-white"
|
||||||
value={current?.value ?? ''}
|
value={current?.value ?? ''}
|
||||||
onChange={(e) => handleSave(e.target.value)}
|
onChange={(e) => handleSave(e.target.value)}
|
||||||
>
|
>
|
||||||
{!fs.defaultValue && <option value="">Seçiniz</option>}
|
{!fs.defaultValue && <option value="">{translate('::App.Select')}</option>}
|
||||||
{fs.items?.map((item: any) => (
|
{fs.items?.map((item: any) => (
|
||||||
<option key={item.key} value={item.key}>
|
<option key={item.key} value={item.key}>
|
||||||
{item.value}
|
{item.value}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue