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