fix(web): substitui Space direction por orientation em todos os arquivos
AntD 6 deprecou direction em favor de orientation. 14 ocorrências em ClientsPage, NewOrderPage, RafaelPainel e SandraPainel. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ function buildColumns(navigate: ReturnType<typeof useNavigate>): TableColumnsTyp
|
|||||||
dataIndex: 'nome',
|
dataIndex: 'nome',
|
||||||
key: 'nome',
|
key: 'nome',
|
||||||
render: (nome: string, record: ClientSummary) => (
|
render: (nome: string, record: ClientSummary) => (
|
||||||
<Space direction="vertical" size={0}>
|
<Space orientation="vertical" size={0}>
|
||||||
<Typography.Link
|
<Typography.Link
|
||||||
strong
|
strong
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
@@ -101,9 +101,9 @@ export function ClientsPage() {
|
|||||||
const columns = buildColumns(navigate);
|
const columns = buildColumns(navigate);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" size={24} style={{ width: '100%' }}>
|
<Space orientation="vertical" size={24} style={{ width: '100%' }}>
|
||||||
{/* Cabeçalho */}
|
{/* Cabeçalho */}
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Title level={2} style={{ margin: 0 }}>
|
<Title level={2} style={{ margin: 0 }}>
|
||||||
Carteira de Clientes
|
Carteira de Clientes
|
||||||
</Title>
|
</Title>
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ function ProductStep({
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" style={{ width: '100%' }} size="middle">
|
<Space orientation="vertical" style={{ width: '100%' }} size="middle">
|
||||||
<Search
|
<Search
|
||||||
placeholder="Buscar produto por nome ou código..."
|
placeholder="Buscar produto por nome ou código..."
|
||||||
allowClear
|
allowClear
|
||||||
@@ -196,7 +196,7 @@ function ReviewStep({
|
|||||||
const creditOk = limit === null || total <= limit;
|
const creditOk = limit === null || total <= limit;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" style={{ width: '100%' }} size="middle">
|
<Space orientation="vertical" style={{ width: '100%' }} size="middle">
|
||||||
<Descriptions bordered size="small" column={2}>
|
<Descriptions bordered size="small" column={2}>
|
||||||
<Descriptions.Item label="Subtotal dos itens" span={2}>
|
<Descriptions.Item label="Subtotal dos itens" span={2}>
|
||||||
<Text strong>{fmt(itemsSubtotal)}</Text>
|
<Text strong>{fmt(itemsSubtotal)}</Text>
|
||||||
@@ -257,7 +257,7 @@ function ConfirmStep({
|
|||||||
const total = Math.round(itemsSubtotal * (1 - globalDisc / 100) * 100) / 100;
|
const total = Math.round(itemsSubtotal * (1 - globalDisc / 100) * 100) / 100;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" style={{ width: '100%' }} size="middle">
|
<Space orientation="vertical" style={{ width: '100%' }} size="middle">
|
||||||
<Descriptions bordered size="small" column={1}>
|
<Descriptions bordered size="small" column={1}>
|
||||||
<Descriptions.Item label="Cliente">{clientNome}</Descriptions.Item>
|
<Descriptions.Item label="Cliente">{clientNome}</Descriptions.Item>
|
||||||
<Descriptions.Item label="Produtos">{cart.length} item(ns)</Descriptions.Item>
|
<Descriptions.Item label="Produtos">{cart.length} item(ns)</Descriptions.Item>
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ export function RafaelPainel() {
|
|||||||
<Card style={{ height: '100%' }}>
|
<Card style={{ height: '100%' }}>
|
||||||
<Flex vertical gap={16}>
|
<Flex vertical gap={16}>
|
||||||
<Flex justify="space-between" align="flex-start">
|
<Flex justify="space-between" align="flex-start">
|
||||||
<Space direction="vertical" size={0}>
|
<Space orientation="vertical" size={0}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
META DO MÊS
|
META DO MÊS
|
||||||
</Text>
|
</Text>
|
||||||
@@ -127,7 +127,7 @@ export function RafaelPainel() {
|
|||||||
|
|
||||||
<Col xs={12} md={6}>
|
<Col xs={12} md={6}>
|
||||||
<Card>
|
<Card>
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
PEDIDOS NO MÊS
|
PEDIDOS NO MÊS
|
||||||
</Text>
|
</Text>
|
||||||
@@ -143,7 +143,7 @@ export function RafaelPainel() {
|
|||||||
|
|
||||||
<Col xs={12} md={6}>
|
<Col xs={12} md={6}>
|
||||||
<Card>
|
<Card>
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
COMISSÃO ACUMULADA
|
COMISSÃO ACUMULADA
|
||||||
</Text>
|
</Text>
|
||||||
@@ -191,7 +191,7 @@ export function RafaelPainel() {
|
|||||||
background: c.diasSemCompra > 60 ? '#fff7e6' : 'var(--bg-surface-alt)',
|
background: c.diasSemCompra > 60 ? '#fff7e6' : 'var(--bg-surface-alt)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Space direction="vertical" size={0}>
|
<Space orientation="vertical" size={0}>
|
||||||
<Link to="/clientes/$id" params={{ id: String(c.idCliente) }}>
|
<Link to="/clientes/$id" params={{ id: String(c.idCliente) }}>
|
||||||
<Text strong>{c.nome}</Text>
|
<Text strong>{c.nome}</Text>
|
||||||
</Link>
|
</Link>
|
||||||
@@ -236,7 +236,7 @@ export function RafaelPainel() {
|
|||||||
<Flex vertical gap={10}>
|
<Flex vertical gap={10}>
|
||||||
{pedidosRecentes.map((o: PedidoSummary) => (
|
{pedidosRecentes.map((o: PedidoSummary) => (
|
||||||
<Flex key={o.id} justify="space-between" align="center">
|
<Flex key={o.id} justify="space-between" align="center">
|
||||||
<Space direction="vertical" size={0}>
|
<Space orientation="vertical" size={0}>
|
||||||
<Link to="/pedidos/$id" params={{ id: o.id }}>
|
<Link to="/pedidos/$id" params={{ id: o.id }}>
|
||||||
<Text strong className="tabular-nums">
|
<Text strong className="tabular-nums">
|
||||||
{o.numPedSar}
|
{o.numPedSar}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export function SandraPainel() {
|
|||||||
<Row gutter={[24, 24]}>
|
<Row gutter={[24, 24]}>
|
||||||
<Col xs={24} md={8}>
|
<Col xs={24} md={8}>
|
||||||
<Card>
|
<Card>
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
APROVAÇÕES PENDENTES
|
APROVAÇÕES PENDENTES
|
||||||
</Text>
|
</Text>
|
||||||
@@ -148,7 +148,7 @@ export function SandraPainel() {
|
|||||||
|
|
||||||
<Col xs={24} md={8}>
|
<Col xs={24} md={8}>
|
||||||
<Card>
|
<Card>
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
PEDIDOS HOJE
|
PEDIDOS HOJE
|
||||||
</Text>
|
</Text>
|
||||||
@@ -171,7 +171,7 @@ export function SandraPainel() {
|
|||||||
|
|
||||||
<Col xs={24} md={8}>
|
<Col xs={24} md={8}>
|
||||||
<Card>
|
<Card>
|
||||||
<Space direction="vertical" size={4}>
|
<Space orientation="vertical" size={4}>
|
||||||
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
<Text type="secondary" style={{ fontSize: 'var(--text-sm)' }}>
|
||||||
VALOR HOJE
|
VALOR HOJE
|
||||||
</Text>
|
</Text>
|
||||||
@@ -253,7 +253,7 @@ export function SandraPainel() {
|
|||||||
background: 'var(--bg-surface-alt)',
|
background: 'var(--bg-surface-alt)',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Space direction="vertical" size={0}>
|
<Space orientation="vertical" size={0}>
|
||||||
<Text strong>Rep cód. {r.codVendedor}</Text>
|
<Text strong>Rep cód. {r.codVendedor}</Text>
|
||||||
</Space>
|
</Space>
|
||||||
<Tag
|
<Tag
|
||||||
|
|||||||
Reference in New Issue
Block a user