mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-23 23:09:25 +01:00
* chore: shadcn config * feat: add shadcn ui config * style: adjust styles * style: adjust styles * refactor: update style * style: adjust styles * style: adjust styles * style: adjust styles * style: adjust styles * refactor: update * refactor: update * refactor: update * refactor: update * style: adjust styles * style: adjust styles * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * style: web styles * refactor: update * style: web styles * style: web styles * refactor: update * refactor: update * refactor: update * chhore: add * chore: add * refactor: update * refactor: update * refactor: update * refactor: update * chore: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * chore: rename * refactor: update * refactor: update * chore: add * refactor: update * chore: update * chroe: up * refactor: update * refactor: update * chore: up * refactor: update * chore: up * feat: support for extracting css variables * chore: update * fix: fixed dark mode * refactor: update * refactor: update * refactor: update * refactor: update * docs: update release notes * style: adjust styles * style: adjust styles * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update * refactor: update --------- Co-authored-by: ayang <473033518@qq.com>
24 lines
579 B
TypeScript
24 lines
579 B
TypeScript
import { useAppStore } from "@/stores/appStore";
|
|
import { Button } from "@/components/ui/button";
|
|
import { SquareArrowOutUpRight } from "lucide-react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
const LoginButton = () => {
|
|
const { endpoint } = useAppStore();
|
|
const { t } = useTranslation();
|
|
|
|
const handleClick = () => {
|
|
window.open(endpoint);
|
|
};
|
|
|
|
return (
|
|
<Button className="h-8" onClick={handleClick}>
|
|
<span>{t("webLogin.buttons.login")}</span>
|
|
|
|
<SquareArrowOutUpRight className="size-4" />
|
|
</Button>
|
|
);
|
|
};
|
|
|
|
export default LoginButton;
|