Skip to content

Commit

Permalink
refactor(admin): mark more fields as translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Oct 12, 2023
1 parent 117634c commit ddad788
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/admin/common/src/types/form.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {type Keyable} from '@myparcel-pdk/common';
import {type Translation} from './language.types';
import {type AdminIcon} from './common.types';

interface BaseSelectOption<Value extends SelectOptionValue = SelectOptionValue> {
Expand All @@ -10,12 +11,12 @@ interface BaseSelectOption<Value extends SelectOptionValue = SelectOptionValue>

export interface SelectOptionWithLabel<Value extends SelectOptionValue = SelectOptionValue>
extends BaseSelectOption<Value> {
label: string;
label: Translation;
}

export interface SelectOptionWithPlainLabel<Value extends SelectOptionValue = SelectOptionValue>
extends BaseSelectOption<Value> {
plainLabel: string;
plainLabel: Translation;
}

export type SelectOptionValue = Keyable | boolean;
Expand Down

0 comments on commit ddad788

Please sign in to comment.