mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
* dbeaver/pro#7081 feat: conditional formatting for data editor * feat: code cleanup after review + reworked rules management * feat: add SVG icons for conditional formatting and update localization strings * chore: after review * feat: refactor conditional formatting presentation and add transition component * refactor: reorder Props interface fields for consistency * refactor: remove unused onAddRule prop from ColorScaleRuleForm and SingleColorRuleForm * feat: add SVG icon for conditional formatting * fix: charts * feat: refactor conditional formatting utilities and improve code organization * fix: localization Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: hide conditional formatting from UI * dbeaver/pro#7210 feat: color palette * chore: codestyle * chore: pr review, use `color` library for manipulating css colors * chore: revert panel hiding * chore: localization * fix: use custom row renderer with mobx observer * fix: line hightlight style * chore: remove unused types --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
16 lines
444 B
TypeScript
16 lines
444 B
TypeScript
/*
|
|
* CloudBeaver - Cloud Database Manager
|
|
* Copyright (C) 2020-2025 DBeaver Corp and others
|
|
*
|
|
* Licensed under the Apache License, Version 2.0.
|
|
* you may not use this file except in compliance with the License.
|
|
*/
|
|
|
|
import { use } from 'react';
|
|
import { TranslateContext, type TranslateFn } from './TranslateContext.js';
|
|
|
|
export function useTranslate(): TranslateFn {
|
|
const context = use(TranslateContext);
|
|
return context.translate;
|
|
}
|