-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add translations and minor optimization
- Loading branch information
1 parent
1c40ae6
commit ccc1cf0
Showing
5 changed files
with
110 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import InformationBell from "@/icons/InformationBell"; | ||
import { useSettingsModalStore } from "@/store/SettingsModalStore"; | ||
import translation from "@/translations/global.json"; | ||
|
||
export default function NoActivity() { | ||
const { lang } = useSettingsModalStore(); | ||
|
||
return ( | ||
<> | ||
<div className="flex flex-col items-center justify-center w-full text-sm text-white h-28"> | ||
<InformationBell /> | ||
<div className="font-thin"> | ||
{translation.metrics["no-activity-found"][lang]} | ||
</div> | ||
<div className="italic font-light"> | ||
{translation.metrics["no-activity-to-display"][lang]} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export default function InformationBell() { | ||
return ( | ||
<> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
strokeWidth={1.2} | ||
stroke="currentColor" | ||
className="w-8 h-8" | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" | ||
/> | ||
</svg> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters