Skip to content

Commit

Permalink
Merge pull request #3753 from owid/datepicker-startday
Browse files Browse the repository at this point in the history
Make the gdocs datepicker start on Monday
  • Loading branch information
ikesau authored Jul 9, 2024
2 parents d9a551e + a45a799 commit df78d6c
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 df78d6c

Please sign in to comment.