Skip to content

Commit

Permalink
refactor(ai): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hugotiburtino committed Dec 20, 2024
1 parent dc2aef3 commit 552e8a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEditStrings } from '@editor/i18n/edit-strings-provider'
import { cn } from '@editor/utils/cn'
import { useState } from 'react'

export function PromtForm({
export function PromptForm({
onSubmit,
}: {
onSubmit: (prompt: string) => void
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/plugins/ai-generation/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { either as E } from 'fp-ts'

import { type AiGenerationPluginProps } from '.'
import { PromtForm } from './components/prompt-form'
import { PromptForm } from './components/prompt-form'
import { StateDecoder } from './decoder'
import { mocked } from './mocked'

Expand Down Expand Up @@ -79,7 +79,7 @@ export function AiGenerationEditor(props: AiGenerationPluginProps) {
className="top-8 max-w-xl translate-y-0 sm:top-24"
extraTitleClassName="serlo-h3 mt-4"
>
<PromtForm onSubmit={handleSubmit} />
<PromptForm onSubmit={handleSubmit} />
</EditorModal>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { runReplaceDocumentSaga, useAppDispatch } from '@editor/store'
import { faWandMagicSparkles } from '@fortawesome/free-solid-svg-icons'
import { useCallback, useState } from 'react'

import { PromtForm } from '../components/prompt-form'
import { PromptForm } from '../components/prompt-form'
import { mockedTextPlugin } from '../mocked'

export function AiChangePluginTool({ pluginId }: { pluginId: string }) {
Expand Down Expand Up @@ -44,7 +44,7 @@ export function AiChangePluginTool({ pluginId }: { pluginId: string }) {
isOpen={modalOpen}
setIsOpen={setModalOpen}
>
<PromtForm onSubmit={handleSubmit} />
<PromptForm onSubmit={handleSubmit} />
</EditorModal>
</>
)
Expand Down

0 comments on commit 552e8a8

Please sign in to comment.