fix preview

This commit is contained in:
SrGooglo 2023-02-24 14:36:19 +00:00
parent 1fcaeea667
commit f38669fb32
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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;