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