Release v4.1 (#229)
* refactor: remove custom icon packs * fix: command not work on windows * fix: make open_window command async * feat: improve commands * feat: improve * refactor: column * feat: improve thread column * feat: improve * feat: add stories column * feat: improve * feat: add search column * feat: add reset password * feat: add subscription * refactor: settings * chore: improve commands * fix: crash on production * feat: use tauri store plugin for cache * feat: new icon * chore: update icon for windows * chore: improve some columns * chore: polish code
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { useRouteContext } from "@tanstack/react-router";
|
||||
import { appSettings } from "@/commons";
|
||||
import { useStore } from "@tanstack/react-store";
|
||||
|
||||
export function VideoPreview({ url }: { url: string }) {
|
||||
const { settings } = useRouteContext({ strict: false });
|
||||
const visible = useStore(appSettings, (state) => state.display_media);
|
||||
|
||||
if (settings.display_media) {
|
||||
if (!visible) {
|
||||
return (
|
||||
<a
|
||||
href={url}
|
||||
|
||||
Reference in New Issue
Block a user