Skip to content

Commit

Permalink
fix: 타입 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
nestiank committed Mar 22, 2024
1 parent ebd644d commit 12fd26b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';
import client from '@/utils/client'
import './result.css'

const Response = ({member, choice}) => (
const Response = ({member}: any) => (
<div className="member">
<h3 className="name">{member.name}</h3>
<p className="party">{member.party}</p>
Expand All @@ -13,8 +13,8 @@ const Response = ({member, choice}) => (
)

const Result = (props: {link: string, message: string}) => {
const [agrees, setAgrees] = React.useState([])
const [disagrees, setDisagrees] = React.useState([])
const [agrees, setAgrees] = React.useState<any[]>([])
const [disagrees, setDisagrees] = React.useState<any[]>([])

React.useEffect(() => {
const fetchResponses = async () => {
Expand Down

0 comments on commit 12fd26b

Please sign in to comment.