This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add buttons to export filters and get url
- Loading branch information
1 parent
ae8b1e4
commit 83cc366
Showing
3 changed files
with
82 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { Button } from "@/components/ui/button.tsx"; | ||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogDescription, | ||
DialogHeader, | ||
DialogTitle, | ||
DialogTrigger, | ||
} from "@/components/ui/dialog.tsx"; | ||
import { Filters } from "@/lib/types.ts"; | ||
import { CalendarPlus } from "lucide-react"; | ||
|
||
export function ExportFiltersToCalendar({ filters }: { filters: Filters }) { | ||
return ( | ||
<Dialog> | ||
<DialogTrigger> | ||
<Button className="w-full"> | ||
<CalendarPlus /> | ||
Экспортировать подборку в календарь | ||
</Button> | ||
</DialogTrigger> | ||
<DialogContent> | ||
<DialogHeader> | ||
<DialogTitle>Экспорт в приложение календаря</DialogTitle> | ||
<DialogDescription> | ||
Вы можете добавить все события из данной подборки по фильтрам в свой | ||
календарь (например, Яндекс Календарь, Google Календарь или Apple | ||
Календарь). | ||
</DialogDescription> | ||
<DialogDescription> | ||
При обновлениях мероприятий в подборке, они также будут обновляться | ||
в вашем календаре. | ||
</DialogDescription> | ||
<DialogDescription>Скопируйте ссылку ниже:</DialogDescription> | ||
</DialogHeader> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
} |
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,33 @@ | ||
import { Button } from "@/components/ui/button.tsx"; | ||
import { | ||
Dialog, | ||
DialogContent, | ||
DialogDescription, | ||
DialogHeader, | ||
DialogTitle, | ||
DialogTrigger, | ||
} from "@/components/ui/dialog.tsx"; | ||
import { Filters } from "@/lib/types.ts"; | ||
import { Share2 } from "lucide-react"; | ||
|
||
export function GetUrlToFilters({ filters }: { filters: Filters }) { | ||
return ( | ||
<Dialog> | ||
<DialogTrigger> | ||
<Button className="w-full"> | ||
<Share2 /> | ||
Поделиться подборкой | ||
</Button> | ||
</DialogTrigger> | ||
<DialogContent> | ||
<DialogHeader> | ||
<DialogTitle>Отправьте ссылку на текущую подборку</DialogTitle> | ||
<DialogDescription> | ||
Чтобы поделиться подборкой с кем-то, отправьте ему ссылку на неё. | ||
</DialogDescription> | ||
<DialogDescription>Скопируйте ссылку ниже:</DialogDescription> | ||
</DialogHeader> | ||
</DialogContent> | ||
</Dialog> | ||
); | ||
} |
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