Skip to content

Commit

Permalink
✨ gdocs datepicker start on monday
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesau committed Jun 28, 2024
1 parent 9737f98 commit a45a799
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion adminSiteClient/GdocsPreviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ export const GdocsPreviewPage = ({ match, history }: GdocsMatchProps) => {
</AdminLayout>
)
}
console.log("currentGdoc.publishedAt", currentGdoc?.publishedAt)

return currentGdoc ? (
<AdminLayout
Expand Down
10 changes: 10 additions & 0 deletions adminSiteClient/admin.entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import "./admin.scss"
import "@ourworldindata/grapher/src/core/grapher.scss"
import "../explorerAdminClient/ExplorerCreatePage.scss"
import "handsontable/dist/handsontable.full.css"
import updateLocale from "dayjs/plugin/updateLocale"
import { dayjs } from "@ourworldindata/utils"
import { Admin } from "./Admin"

// Start the antd Datepicker week on Monday (see GdocsDateline.tsx)
dayjs.extend(updateLocale)
dayjs.updateLocale("en", {
weekStart: 1,
})

declare let window: any

window.Admin = Admin

0 comments on commit a45a799

Please sign in to comment.