Skip to content

Commit

Permalink
Fix Switch usage and update sillsdev/scripture (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil authored Oct 18, 2024
2 parents 20d3b3b + 4fe1f36 commit 4cb1179
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 50 deletions.
86 changes: 47 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/paratext-bible-word-list/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {
WithNotifyUpdate,
} from '@papi/core';

import { VerseRef } from '@sillsdev/scripture';
import type { WordListDataTypes, WordListEntry, WordListSelector } from 'paratext-bible-word-list';
import { ScriptureReference } from 'platform-bible-react';
import { UnsubscriberAsync } from 'platform-bible-utils';
import { VerseRef } from '@sillsdev/scripture';
import wordListReact from './word-list.web-view?inline';
import wordListReactStyles from './word-list.web-view.scss?inline';
import wordListReact from './word-list.web-view?inline';

const { logger } = papi;

Expand Down
11 changes: 2 additions & 9 deletions src/paratext-bible-word-list/src/word-list.web-view.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { WebViewProps } from '@papi/core';
import { useData } from '@papi/frontend/react';
import type { WordListEntry } from 'paratext-bible-word-list';
import {
ComboBox,
Input,
Label,
ScriptureReference,
ShadCnSwitch,
Spinner,
} from 'platform-bible-react';
import { ComboBox, Input, Label, ScriptureReference, Spinner, Switch } from 'platform-bible-react';
import { ChangeEvent, useEffect, useMemo, useState } from 'react';
import WordCloud from './word-cloud.component';
import WordContentViewer from './word-content-viewer.component';
Expand Down Expand Up @@ -136,7 +129,7 @@ globalThis.webViewComponent = function WordListWebView({
value={wordFilter}
onChange={(event) => onChangeWordFilter(event)}
/>
<ShadCnSwitch
<Switch
id="view-mode"
checked={showWordCloud}
onCheckedChange={() => {
Expand Down

0 comments on commit 4cb1179

Please sign in to comment.