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 { Popup } from '../_shared/Popup'
import { useLocalize } from '../../context/localize' import { useLocalize } from '../../context/localize'
import { useSnackbar } from '../../context/snackbar' import { useSnackbar } from '../../context/snackbar'
import VotersList from '../_shared/VotersList' import { VotersList } from '../_shared/VotersList'
type Props = { type Props = {
comment: Reaction comment: Reaction

View File

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

View File

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

View File

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