Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 3, 2024
1 parent 31b5fec commit 977950f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/electron/frontend/core/components/DateTimeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ export function extractISOString(
export const renderDateTime = (value) => {
if (typeof value === "string") return extractISOString(new Date(value));
return value;
}
};

export const resolveDateTime = renderDateTime
export const resolveDateTime = renderDateTime;
// const resolveDateTime = (value) => {
// if (typeof value === "string") return extractISOString(new Date(value), { offset: true });
// return value;
// }

// }

export class DateTimeSelector extends LitElement {
static get styles() {
Expand Down Expand Up @@ -74,22 +73,21 @@ export class DateTimeSelector extends LitElement {
}

get min() {
return this.input.min
return this.input.min;
}

set min(value) {
this.input.min = value
this.input.min = value;
}

get max() {
return this.input.max
return this.input.max;
}

set max(value) {
this.input.max = value
this.input.max = value;
}


constructor({ value, min, max } = {}) {
super();
this.input = document.createElement("input");
Expand Down

0 comments on commit 977950f

Please sign in to comment.