Skip to content

Commit

Permalink
fix: component exports
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnsandy committed Sep 30, 2024
1 parent eb71320 commit c9bf371
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { Meta, StoryObj } from '@storybook/react'
import TextToSpeechComponent from './TextToSpeech'
import TextToSpeech from './TextToSpeech'
import './text-to-speech.scss'

const meta: Meta<typeof TextToSpeechComponent> = {
const meta: Meta<typeof TextToSpeech> = {
title: 'FP.REACT Components/TextToSpeech',
component: TextToSpeechComponent,
component: TextToSpeech,
tags: ['autodocs'],
argTypes: {
voice: {
Expand All @@ -23,7 +23,7 @@ const meta: Meta<typeof TextToSpeechComponent> = {

export default meta

type Story = StoryObj<typeof TextToSpeechComponent>
type Story = StoryObj<typeof TextToSpeech>

export const Default: Story = {
args: {
Expand Down Expand Up @@ -90,7 +90,7 @@ export const FullFeature: Story = {

return (
<div>
<TextToSpeechComponent
<TextToSpeech
{...args}
voice={selectedVoice}
pitch={pitch}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface TextToSpeechComponentProps {
* @param {TextToSpeechComponentProps} props - The props for the component.
* @returns {JSX.Element} The rendered TextToSpeechComponent.
*/
const TextToSpeechComponent: React.FC<TextToSpeechComponentProps> = ({
export const TextToSpeech: React.FC<TextToSpeechComponentProps> = ({
initialText = '',
showTextInput = true,
voice,
Expand Down Expand Up @@ -90,5 +90,5 @@ const TextToSpeechComponent: React.FC<TextToSpeechComponentProps> = ({
)
}

export default TextToSpeechComponent
TextToSpeechComponent.displayName = 'TextToSpeechComponent'
export default TextToSpeech
TextToSpeech.displayName = 'TextToSpeechComponent'

0 comments on commit c9bf371

Please sign in to comment.