pl-fe: format
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
0482d81c8b
commit
50536efdce
3 changed files with 0 additions and 3 deletions
|
@ -5,7 +5,6 @@ import KVStore from 'pl-fe/storage/kv-store';
|
||||||
import type { AppDispatch, RootState } from 'pl-fe/store';
|
import type { AppDispatch, RootState } from 'pl-fe/store';
|
||||||
import type { APIEntity } from 'pl-fe/types/entities';
|
import type { APIEntity } from 'pl-fe/types/entities';
|
||||||
|
|
||||||
|
|
||||||
const DRAFT_STATUSES_FETCH_SUCCESS = 'DRAFT_STATUSES_FETCH_SUCCESS' as const;
|
const DRAFT_STATUSES_FETCH_SUCCESS = 'DRAFT_STATUSES_FETCH_SUCCESS' as const;
|
||||||
|
|
||||||
const PERSIST_DRAFT_STATUS = 'PERSIST_DRAFT_STATUS' as const;
|
const PERSIST_DRAFT_STATUS = 'PERSIST_DRAFT_STATUS' as const;
|
||||||
|
|
|
@ -52,7 +52,6 @@ const AutosuggestInput: React.FC<IAutosuggestInput> = ({
|
||||||
|
|
||||||
const inputRef = useRef<HTMLInputElement>(null);
|
const inputRef = useRef<HTMLInputElement>(null);
|
||||||
|
|
||||||
|
|
||||||
const onChange: React.ChangeEventHandler<HTMLInputElement> = (e) => {
|
const onChange: React.ChangeEventHandler<HTMLInputElement> = (e) => {
|
||||||
const [tokenStart, token] = textAtCursorMatchesToken(
|
const [tokenStart, token] = textAtCursorMatchesToken(
|
||||||
e.target.value,
|
e.target.value,
|
||||||
|
|
|
@ -52,7 +52,6 @@ const toTailwind = (config: {
|
||||||
const colors: PlFeColors = config.colors;
|
const colors: PlFeColors = config.colors;
|
||||||
const legacyColors = fromLegacyColors(config);
|
const legacyColors = fromLegacyColors(config);
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...colors,
|
...colors,
|
||||||
...Object.fromEntries(Object.entries(legacyColors).map(([key, value]) => [key, typeof value === 'string' ? colors[key] || value : { ...value, ...colors[key] }])),
|
...Object.fromEntries(Object.entries(legacyColors).map(([key, value]) => [key, typeof value === 'string' ? colors[key] || value : { ...value, ...colors[key] }])),
|
||||||
|
|
Loading…
Reference in a new issue