mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
support user indexation in url
This commit is contained in:
parent
3aeebbcead
commit
a366565d7c
8
packages/app/src/pages/@[username]/index.jsx
Normal file
8
packages/app/src/pages/@[username]/index.jsx
Normal file
@ -0,0 +1,8 @@
|
||||
import React from "react"
|
||||
import Account from "../account"
|
||||
|
||||
export default (props) => {
|
||||
const username = props.match.params.username
|
||||
|
||||
return <Account username={username} />
|
||||
}
|
8
packages/app/src/pages/account/[username].jsx
Normal file
8
packages/app/src/pages/account/[username].jsx
Normal file
@ -0,0 +1,8 @@
|
||||
import React from "react"
|
||||
import Account from "."
|
||||
|
||||
export default (props) => {
|
||||
const username = props.match.params.username
|
||||
|
||||
return <Account username={username} />
|
||||
}
|
5
packages/app/src/pages/index.jsx
Normal file
5
packages/app/src/pages/index.jsx
Normal file
@ -0,0 +1,5 @@
|
||||
import React from "react"
|
||||
|
||||
export default (props) => {
|
||||
return window.app.setLocation("/main")
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user