mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix params
This commit is contained in:
parent
5fc5e356d0
commit
c38795b8e6
@ -19,7 +19,7 @@ const LocationProcessRegexs = [
|
||||
]
|
||||
|
||||
export default (props) => {
|
||||
const eventId = props.match.params["id"]
|
||||
const eventId = props.params["id"]
|
||||
|
||||
const [eventData, setEventData] = React.useState(null)
|
||||
|
||||
|
@ -20,7 +20,7 @@ const TrackItem = ({ track }) => {
|
||||
}
|
||||
|
||||
export default (props) => {
|
||||
const play_id = props.match.params.play_id
|
||||
const play_id = props.params.play_id
|
||||
|
||||
const [playlist, setPlaylist] = React.useState(null)
|
||||
|
||||
|
@ -7,7 +7,7 @@ import { PostCard, CommentsCard } from "components"
|
||||
import "./index.less"
|
||||
|
||||
export default (props) => {
|
||||
const post_id = props.match.params.post_id
|
||||
const post_id = props.params.post_id
|
||||
|
||||
const [data, setData] = React.useState(null)
|
||||
|
||||
|
@ -10,7 +10,7 @@ import "./index.less"
|
||||
const floatingPanelAnchors = [160, 72 + 119, window.innerHeight * 0.8]
|
||||
|
||||
export default (props) => {
|
||||
const post_id = props.match.params.post_id
|
||||
const post_id = props.params.post_id
|
||||
|
||||
const [data, setData] = React.useState(null)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import { LiveChat } from "components"
|
||||
import "./index.less"
|
||||
|
||||
export default (props) => {
|
||||
const roomId = props.match.params.id
|
||||
const roomId = props.params.id
|
||||
|
||||
return <div className="textRoom">
|
||||
<LiveChat
|
||||
|
Loading…
x
Reference in New Issue
Block a user