More clearly separate obsidian and react code

This commit is contained in:
Andre Perunicic 2022-09-11 20:06:30 -04:00
parent f77fa5a36e
commit 08090a3fa8
3 changed files with 6 additions and 6 deletions

View file

@ -6,8 +6,8 @@ import {
Setting,
} from 'obsidian';
import ExampleView, { REPEATING_NOTES_DUE_VIEW } from './repeat/view';
import RepeatNoteSetupModal from './repeat/modal';
import RepeatView, { REPEATING_NOTES_DUE_VIEW } from './repeat/obsidian/RepeatView';
import RepeatNoteSetupModal from './repeat/obsidian/RepeatNoteSetupModal';
import { RepeatPluginSettings, DEFAULT_SETTINGS } from './settings';
export default class RepeatPlugin extends Plugin {
@ -52,7 +52,7 @@ export default class RepeatPlugin extends Plugin {
));
this.registerView(
REPEATING_NOTES_DUE_VIEW,
(leaf) => new ExampleView(leaf),
(leaf) => new RepeatView(leaf),
);
const ribbonIconEl = this.addRibbonIcon(

View file

@ -2,11 +2,11 @@ import { ItemView, WorkspaceLeaf } from 'obsidian';
import * as React from 'react';
import { createRoot, Root } from 'react-dom/client';
import RepeatingNotesDueRoot from './RepeatingNotesDueRoot';
import RepeatingNotesDueRoot from '../RepeatingNotesDueRoot';
export const REPEATING_NOTES_DUE_VIEW = 'repeating-notes-due-view';
class ExampleView extends ItemView {
class RepeatView extends ItemView {
root: Root;
constructor(leaf: WorkspaceLeaf) {
@ -35,4 +35,4 @@ class ExampleView extends ItemView {
}
}
export default ExampleView;
export default RepeatView;