renamed tachi instances to Kamaitachi
This commit is contained in:
@ -4,10 +4,9 @@ import { Button } from "@/components/ui/button";
|
|||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { useToast } from "@/components/ui/use-toast";
|
import { useToast } from "@/components/ui/use-toast";
|
||||||
|
|
||||||
// Server action imported from server-side code
|
|
||||||
import { getTachiExport } from "./action";
|
import { getTachiExport } from "./action";
|
||||||
|
|
||||||
const TachiExport = () => {
|
const Kamaitachi = () => {
|
||||||
const { toast } = useToast();
|
const { toast } = useToast();
|
||||||
|
|
||||||
const handleExport = async () => {
|
const handleExport = async () => {
|
||||||
@ -21,7 +20,7 @@ const TachiExport = () => {
|
|||||||
const url = URL.createObjectURL(exportedFile);
|
const url = URL.createObjectURL(exportedFile);
|
||||||
const kamafile = document.createElement("a");
|
const kamafile = document.createElement("a");
|
||||||
kamafile.href = url;
|
kamafile.href = url;
|
||||||
kamafile.download = "tachi_export.json";
|
kamafile.download = "kamaitachi.json";
|
||||||
document.body.appendChild(kamafile);
|
document.body.appendChild(kamafile);
|
||||||
kamafile.click();
|
kamafile.click();
|
||||||
document.body.removeChild(kamafile);
|
document.body.removeChild(kamafile);
|
||||||
@ -59,4 +58,4 @@ const TachiExport = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export { TachiExport };
|
export { Kamaitachi };
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { TachiExport } from "./kamaitachiexport";
|
import { Kamaitachi } from "./kamaitachiexport";
|
||||||
|
|
||||||
const SecuritySettingsPage = async () => {
|
const SecuritySettingsPage = async () => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<TachiExport />
|
<Kamaitachi />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user