Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 committed Mar 30, 2024
1 parent 117c077 commit 902db15
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin/src/query/injector.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { MarkdownRenderChild } from "obsidian";
import type { MarkdownPostProcessorContext } from "obsidian";
import type { SvelteComponent } from "svelte";
import type TodoistPlugin from "..";
import debug from "../log";
import ErrorDisplay from "../ui/ErrorDisplay.svelte";
import TodoistQuery from "../ui/TodoistQuery.svelte";
import { parseQuery } from "./parser";
import { applyReplacements } from "./replacements";
import type TodoistPlugin from "..";

export class QueryInjector {
private readonly plugin: TodoistPlugin;
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/services/modals.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Modal, Platform } from "obsidian";
import React from "react";
import { type Root, createRoot } from "react-dom/client";
import type TodoistPlugin from "..";
import { ModalContext, type ModalInfo } from "../ui/context/modal";
import { PluginContext } from "../ui/context/plugin";
import { CreateTaskModal } from "../ui/createTaskModal";
import { OnboardingModal } from "../ui/onboardingModal";
import { Modal, Platform } from "obsidian";

type ModalOptions = {
title?: string;
Expand Down
6 changes: 3 additions & 3 deletions plugin/src/ui/createTaskModal/Popover.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Platform } from "obsidian";
import type { PropsWithChildren } from "react";
import { useModalContext } from "../context/modal";
import { Popover as AriaPopover, type PopoverProps } from "react-aria-components";
import React from "react";
import { Platform } from "obsidian";
import { Popover as AriaPopover, type PopoverProps } from "react-aria-components";
import { useModalContext } from "../context/modal";

export const Popover: React.FC<PropsWithChildren> = ({ children }) => {
const modal = useModalContext();
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/ui/createTaskModal/ProjectSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Platform } from "obsidian";
import React, { useMemo, useState } from "react";
import {
Button,
Expand All @@ -15,7 +16,6 @@ import type { Section, SectionId } from "../../api/domain/section";
import { ObsidianIcon } from "../components/obsidian-icon";
import { usePluginContext } from "../context/plugin";
import { Popover } from "./Popover";
import { Platform } from "obsidian";

export type ProjectIdentifier = {
projectId: ProjectId;
Expand Down

0 comments on commit 902db15

Please sign in to comment.