供应商新品推荐:页面默认视图改为明细数据
This commit is contained in:
parent
fc12269838
commit
f3f59adcbc
@ -40,7 +40,7 @@ function openDatePicker(event: React.MouseEvent<HTMLInputElement>) {
|
||||
export function SupplierRecommendedProductsClient({ initialData, canEdit, canDownload, canSelect, canViewDashboard, currentUser }: { initialData: SupplierRecommendedProductPage; canEdit: boolean; canDownload: boolean; canSelect: boolean; canViewDashboard: boolean; currentUser: { id: string; name: string } }) {
|
||||
const [data, setData] = useState(initialData)
|
||||
const [filters, setFilters] = useState<SupplierRecommendedProductFilters>({ ...EMPTY_SUPPLIER_RECOMMENDED_PRODUCT_FILTERS })
|
||||
const [pageView, setPageView] = useState<'list' | 'dashboard'>(canViewDashboard ? 'dashboard' : 'list')
|
||||
const [pageView, setPageView] = useState<'list' | 'dashboard'>('list')
|
||||
const [editor, setEditor] = useState<SupplierRecommendedProductRow | 'new' | null>(null)
|
||||
const [logs, setLogs] = useState<SupplierRecommendedProductChangeLogEntry[] | null>(null)
|
||||
const [preview, setPreview] = useState<SupplierRecommendedProductRow | null>(null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user