From bfa998e478e65ba9e259f88b706b43b66f3cf450 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 26 Mar 2021 14:49:59 +0800 Subject: [PATCH] fix actions for calendar view --- packages/app/src/components/actions/style.less | 1 + .../pages/AdminLoader/View/Calendar/index.tsx | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/app/src/components/actions/style.less b/packages/app/src/components/actions/style.less index 0b1edb723..d226bbbbf 100644 --- a/packages/app/src/components/actions/style.less +++ b/packages/app/src/components/actions/style.less @@ -10,5 +10,6 @@ .filter-action-button { position: absolute; left: 24px; + margin-left: 0; } } \ No newline at end of file diff --git a/packages/app/src/components/pages/AdminLoader/View/Calendar/index.tsx b/packages/app/src/components/pages/AdminLoader/View/Calendar/index.tsx index 6fa022856..7870d5e89 100644 --- a/packages/app/src/components/pages/AdminLoader/View/Calendar/index.tsx +++ b/packages/app/src/components/pages/AdminLoader/View/Calendar/index.tsx @@ -10,6 +10,7 @@ import moment from 'moment'; const localizer = momentLocalizer(moment) // or globalizeLocalizer import Drawer from '@/components/pages/AdminLoader/Drawer'; import { Details, DetailsPage } from '../Table'; +import { Actions } from '../../Actions'; export const icon = ; @@ -60,6 +61,7 @@ export function Calendar(props: CalendarProps) { endDateField, detailsOpenMode, details = [], + actions = [], } = schema; console.log({schema}) @@ -131,6 +133,22 @@ export function Calendar(props: CalendarProps) { console.log('events', data) return ( +