add named export

This commit is contained in:
ilya-bkv 2023-03-10 02:56:19 +03:00
parent 07bddd2c15
commit 69f17e4425
4 changed files with 4 additions and 6 deletions

View File

@ -9,7 +9,7 @@ import { loadShout } from '../../stores/zine/articles'
import { Popup } from '../_shared/Popup'
import { useLocalize } from '../../context/localize'
import { useSnackbar } from '../../context/snackbar'
import VotersList from '../_shared/VotersList'
import { VotersList } from '../_shared/VotersList'
type Props = {
comment: Reaction

View File

@ -6,7 +6,7 @@ import { loadShout } from '../../stores/zine/articles'
import { useSession } from '../../context/session'
import { useReactions } from '../../context/reactions'
import { Popup } from '../_shared/Popup'
import VotersList from '../_shared/VotersList'
import { VotersList } from '../_shared/VotersList'
import { useLocalize } from '../../context/localize'
interface ShoutRatingControlProps {

View File

@ -10,7 +10,7 @@ type Props = {
fallbackMessage: string
}
const VotersList = (props: Props) => {
export const VotersList = (props: Props) => {
return (
<div class={styles.VotersList}>
<ul class={clsx('nodash', styles.users)}>
@ -42,5 +42,3 @@ const VotersList = (props: Props) => {
</div>
)
}
export default VotersList

View File

@ -1 +1 @@
export { default } from './VotersList'
export { VotersList } from './VotersList'