mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: string hooks
This commit is contained in:
1 parent
f5f3f70e35
commit
27abf1b0de
7 files changed
+82
-12
No files matched your search
@@ -20,5 +20,6 @@
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { api } from "../../core/api/dynamic";
|
||||
import { useAwait } from "../../hooks/useAwait";
|
||||
import { useGameStrings } from "../../hooks/useGameStrings";
|
||||
import { useLocale } from "../../hooks/useLocale";
|
||||
import type { Avatar } from "../../protos/avatar";
|
||||
import { Text } from "../Text";
|
||||
import "./index.css";
|
||||
@@ -9,12 +9,8 @@ interface Props {
|
||||
}
|
||||
|
||||
export function AvatarCard({ avatar }: Props) {
|
||||
// const { locale } = useLocale();
|
||||
const { locale } = { locale: "en" };
|
||||
const profileAvatarEntityStrings = useAwait(
|
||||
() => api.groupedGameStrings(locale, "ProfileAvatarEntity"),
|
||||
"profile-avatar-entity-strings"
|
||||
);
|
||||
const { locale } = useLocale();
|
||||
const profileAvatarEntityStrings = useGameStrings("ProfileAvatarEntity");
|
||||
|
||||
return (
|
||||
<div className="avatar-card">
|
||||
|
||||
Reference in new issue
Block a user