mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
21 lines
439 B
TypeScript
21 lines
439 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { FSelect } from '../Forms';
|
|
|
|
/**
|
|
* Warehouse select field.
|
|
* @param {*} param0
|
|
* @returns
|
|
*/
|
|
export function WarehouseSelect({ warehouses, ...rest }) {
|
|
return (
|
|
<FSelect
|
|
valueAccessor={'id'}
|
|
labelAccessor={'code'}
|
|
textAccessor={'name'}
|
|
popoverProps={{ minimal: true, usePortal: true, inline: false }}
|
|
{...rest}
|
|
items={warehouses}
|
|
/>
|
|
);
|
|
} |