Browse Source

refactor: remove duplicate code

pull/6890/head
Pranav C 10 months ago
parent
commit
5fd1f1fd5e
  1. 5
      packages/nc-gui/components/cell/DatePicker.vue
  2. 5
      packages/nc-gui/components/cell/DateTimePicker.vue

5
packages/nc-gui/components/cell/DatePicker.vue

@ -1,6 +1,5 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import updateLocale from 'dayjs/plugin/updateLocale'
import {
ActiveCellInj,
CellClickHookInj,
@ -24,10 +23,6 @@ interface Props {
const { modelValue, isPk } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
dayjs.extend(updateLocale)
dayjs.updateLocale('en', {
weekStart: 1,
})
const { t } = useI18n()

5
packages/nc-gui/components/cell/DateTimePicker.vue

@ -1,7 +1,6 @@
<script setup lang="ts">
import dayjs from 'dayjs'
import { isSystemColumn } from 'nocodb-sdk'
import updateLocale from 'dayjs/plugin/updateLocale'
import {
ActiveCellInj,
CellClickHookInj,
@ -27,10 +26,6 @@ interface Props {
const { modelValue, isPk, isUpdatedFromCopyNPaste } = defineProps<Props>()
const emit = defineEmits(['update:modelValue'])
dayjs.extend(updateLocale)
dayjs.updateLocale('en', {
weekStart: 1,
})
const { isMssql, isXcdbBase } = useBase()

Loading…
Cancel
Save