Skip to content

Commit 9d283cf

Browse files
committed
Remove unused token_count property from the PromptField component and its stories
- remove token count from prompt field
1 parent 2213bea commit 9d283cf

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎apps/editor/src/views/panel/frontend/Main/MainView/MainView.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ export const MainView: React.FC<Props> = (props) => {
429429
on_tab_delete={props.on_tab_delete}
430430
warning={warning}
431431
voice_input_push_to_talk={props.voice_input_push_to_talk}
432-
token_count={props.token_count}
433432
translations={{
434433
invocation_count: t('prompt-field.invocation-count'),
435434
voice_input: t('prompt-field.voice-input'),

‎packages/ui/src/components/editor/panel/prompts/PromptField/PromptField.stories.tsx‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export const Empty = () => (
4848
on_tab_change={() => {}}
4949
on_new_tab={() => {}}
5050
on_tab_delete={() => {}}
51-
token_count={0}
5251
translations={{
5352
invocation_count: 'Invocation count',
5453
voice_input: 'Voice input',
@@ -103,7 +102,6 @@ export const WithText = () => (
103102
on_tab_change={() => {}}
104103
on_new_tab={() => {}}
105104
on_tab_delete={() => {}}
106-
token_count={0}
107105
translations={{
108106
invocation_count: 'Invocation count',
109107
voice_input: 'Voice input',
@@ -158,7 +156,6 @@ export const LongText = () => (
158156
on_tab_change={() => {}}
159157
on_new_tab={() => {}}
160158
on_tab_delete={() => {}}
161-
token_count={0}
162159
translations={{
163160
invocation_count: 'Invocation count',
164161
voice_input: 'Voice input',
@@ -213,7 +210,6 @@ export const WithPlaceholderSavedContext = () => (
213210
on_tab_change={() => {}}
214211
on_new_tab={() => {}}
215212
on_tab_delete={() => {}}
216-
token_count={0}
217213
translations={{
218214
invocation_count: 'Invocation count',
219215
voice_input: 'Voice input',
@@ -274,7 +270,6 @@ export const WithPlaceholderSelection = () => (
274270
on_tab_change={() => {}}
275271
on_new_tab={() => {}}
276272
on_tab_delete={() => {}}
277-
token_count={0}
278273
translations={{
279274
invocation_count: 'Invocation count',
280275
voice_input: 'Voice input',
@@ -329,7 +324,6 @@ export const WithCommit = () => (
329324
on_tab_change={() => {}}
330325
on_new_tab={() => {}}
331326
on_tab_delete={() => {}}
332-
token_count={0}
333327
translations={{
334328
invocation_count: 'Invocation count',
335329
voice_input: 'Voice input',
@@ -384,7 +378,6 @@ export const WithCommitWithQuotes = () => (
384378
on_tab_change={() => {}}
385379
on_new_tab={() => {}}
386380
on_tab_delete={() => {}}
387-
token_count={0}
388381
translations={{
389382
invocation_count: 'Invocation count',
390383
voice_input: 'Voice input',
@@ -438,7 +431,6 @@ export const WithContextAtCommit = () => (
438431
on_tab_change={() => {}}
439432
on_new_tab={() => {}}
440433
on_tab_delete={() => {}}
441-
token_count={0}
442434
translations={{
443435
invocation_count: 'Invocation count',
444436
voice_input: 'Voice input',
@@ -497,7 +489,6 @@ export const WithEditFormatSelector = () => {
497489
on_tab_change={() => {}}
498490
on_new_tab={() => {}}
499491
on_tab_delete={() => {}}
500-
token_count={0}
501492
translations={{
502493
invocation_count: 'Invocation count',
503494
voice_input: 'Voice input',
@@ -553,7 +544,6 @@ export const WithFilePaths = () => (
553544
on_tab_change={() => {}}
554545
on_new_tab={() => {}}
555546
on_tab_delete={() => {}}
556-
token_count={0}
557547
translations={{
558548
invocation_count: 'Invocation count',
559549
voice_input: 'Voice input',
@@ -636,7 +626,6 @@ export const WithTabs = () => {
636626
on_tab_change={set_active_index}
637627
on_new_tab={handle_new_tab}
638628
on_tab_delete={handle_tab_delete}
639-
token_count={0}
640629
translations={{
641630
invocation_count: 'Invocation count',
642631
voice_input: 'Voice input',
@@ -688,7 +677,6 @@ export const WithWarning = () => (
688677
on_tab_change={() => {}}
689678
on_new_tab={() => {}}
690679
on_tab_delete={() => {}}
691-
token_count={0}
692680
translations={{
693681
invocation_count: 'Invocation count',
694682
voice_input: 'Voice input',

‎packages/ui/src/components/editor/panel/prompts/PromptField/PromptField.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export type PromptFieldProps = {
7777
on_tab_delete: (index: number) => void
7878
warning?: string
7979
voice_input_push_to_talk?: boolean
80-
token_count: number
8180
translations: {
8281
invocation_count: string
8382
voice_input: string

0 commit comments

Comments
 (0)