mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-22 09:24:22 +02:00
enhance(frontend): typed nirax (#16309)
* enhance(frontend): typed nirax * migrate router.replace * fix
This commit is contained in:
@@ -86,7 +86,11 @@ function start(ev: MouseEvent) {
|
||||
async function startUser() {
|
||||
// TODO: localOnly は連合に対応したら消す
|
||||
os.selectUser({ localOnly: true }).then(user => {
|
||||
router.push(`/chat/user/${user.id}`);
|
||||
router.push('/chat/user/:userId', {
|
||||
params: {
|
||||
userId: user.id,
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -101,7 +105,11 @@ async function createRoom() {
|
||||
name: result,
|
||||
});
|
||||
|
||||
router.push(`/chat/room/${room.id}`);
|
||||
router.push('/chat/room/:roomId', {
|
||||
params: {
|
||||
roomId: room.id,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async function search() {
|
||||
|
||||
@@ -61,7 +61,11 @@ async function join(invitation: Misskey.entities.ChatRoomInvitation) {
|
||||
roomId: invitation.room.id,
|
||||
});
|
||||
|
||||
router.push(`/chat/room/${invitation.room.id}`);
|
||||
router.push('/chat/room/:roomId', {
|
||||
params: {
|
||||
roomId: invitation.room.id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
async function ignore(invitation: Misskey.entities.ChatRoomInvitation) {
|
||||
|
||||
Reference in New Issue
Block a user