fix(ui): remover avisos visuais e destacar atualizações

This commit is contained in:
Felipe Coutinho
2026-04-03 18:11:30 +00:00
parent 5c4995961c
commit f5cdae4853
11 changed files with 190 additions and 80 deletions

View File

@@ -31,6 +31,13 @@ type ChartContextProps = {
const ChartContext = React.createContext<ChartContextProps | null>(null);
const CHART_MIN_WIDTH = 280;
const CHART_MIN_HEIGHT = 200;
const CHART_INITIAL_DIMENSION = {
width: CHART_MIN_WIDTH,
height: CHART_MIN_HEIGHT,
} as const;
function useChart() {
const context = React.useContext(ChartContext);
@@ -80,8 +87,9 @@ function ChartContainer({
<RechartsPrimitive.ResponsiveContainer
width="100%"
height="100%"
minWidth={280}
minHeight={200}
minWidth={CHART_MIN_WIDTH}
minHeight={CHART_MIN_HEIGHT}
initialDimension={CHART_INITIAL_DIMENSION}
>
{children}
</RechartsPrimitive.ResponsiveContainer>

View File

@@ -56,7 +56,7 @@ const formatDigits = (digits: string) => {
return BRL_FORMATTER.format(numeric);
};
export interface CurrencyInputProps
interface CurrencyInputProps
extends Omit<
React.ComponentProps<typeof Input>,
"value" | "defaultValue" | "type" | "inputMode" | "onChange"