mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
fix preview
This commit is contained in:
parent
1fcaeea667
commit
f38669fb32
@ -19,7 +19,7 @@ export default (props) => {
|
||||
}
|
||||
|
||||
const data = await User.data({
|
||||
_id: props.user_id,
|
||||
user_id: props.user_id,
|
||||
username: props.username
|
||||
}).catch((err) => {
|
||||
console.error(err)
|
||||
@ -35,7 +35,7 @@ export default (props) => {
|
||||
const handleOnClick = async () => {
|
||||
if (typeof props.onClick !== "function") {
|
||||
console.warn("UserPreview: onClick is not a function, executing default action")
|
||||
return app.goToAccount(userData.username)
|
||||
return app.navigation.goToAccount(userData.username)
|
||||
}
|
||||
|
||||
return await props.onClick(userData)
|
||||
|
@ -4,7 +4,7 @@
|
||||
align-items: center;
|
||||
|
||||
svg {
|
||||
fill: var(--appColor);
|
||||
fill: var(--app-color);
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
@ -43,8 +43,6 @@
|
||||
align-self: start;
|
||||
|
||||
color: var(--background-color-contrast);
|
||||
font-family: "DM Mono", monospace;
|
||||
|
||||
font-size: 1rem;
|
||||
|
||||
margin: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user