= ({ domain, editDomainRedirects }) => {
const [isModalOpen, toggleModal] = useToggle();
const { isDefault } = domain;
- const canBeEdited = !isDefault || useFeature('defaultDomainRedirectsEdition');
+ const canBeEdited = !isDefault;
const withVisits = useFeature('domainVisits');
const routesPrefix = useRoutesPrefix();
diff --git a/src/shlink-web-component/overview/Overview.tsx b/src/shlink-web-component/overview/Overview.tsx
index fb411d3b..5d80fbee 100644
--- a/src/shlink-web-component/overview/Overview.tsx
+++ b/src/shlink-web-component/overview/Overview.tsx
@@ -11,7 +11,6 @@ import type { ShortUrlsList as ShortUrlsListState } from '../short-urls/reducers
import { ITEMS_IN_OVERVIEW_PAGE } from '../short-urls/reducers/shortUrlsList';
import type { ShortUrlsTableType } from '../short-urls/ShortUrlsTable';
import type { TagsList } from '../tags/reducers/tagsList';
-import { useFeature } from '../utils/features';
import { useRoutesPrefix } from '../utils/routesPrefix';
import { useSetting } from '../utils/settings';
import type { VisitsOverview } from '../visits/reducers/visitsOverview';
@@ -42,7 +41,6 @@ export const Overview = (
const { loading: loadingTags } = tagsList;
const { loading: loadingVisits, nonOrphanVisits, orphanVisits } = visitsOverview;
const routesPrefix = useRoutesPrefix();
- const linkToNonOrphanVisits = useFeature('nonOrphanVisits');
const navigate = useNavigate();
const visits = useSetting('visits');
@@ -58,7 +56,7 @@ export const Overview = (
;
-const buildExtraProps = (link?: string) => (!link ? {} : { tag: Link, to: link });
+const buildExtraProps = (link: string) => ({ tag: Link, to: link });
export const HighlightCard: FC = ({ children, title, link, tooltip }) => {
const ref = useElementRef();
@@ -20,7 +20,7 @@ export const HighlightCard: FC = ({ children, title, link, t
return (
<>
- {link && }
+
{title}
{children}
diff --git a/src/shlink-web-component/short-urls/ShortUrlForm.tsx b/src/shlink-web-component/short-urls/ShortUrlForm.tsx
index 4b59d6cd..200a927e 100644
--- a/src/shlink-web-component/short-urls/ShortUrlForm.tsx
+++ b/src/shlink-web-component/short-urls/ShortUrlForm.tsx
@@ -134,8 +134,6 @@ export const ShortUrlForm = (
>
);
- const showForwardQueryControl = useFeature('forwardQuery');
-
return (
diff --git a/src/shlink-web-component/short-urls/ShortUrlsFilteringBar.tsx b/src/shlink-web-component/short-urls/ShortUrlsFilteringBar.tsx
index 40c1185f..420c9f15 100644
--- a/src/shlink-web-component/short-urls/ShortUrlsFilteringBar.tsx
+++ b/src/shlink-web-component/short-urls/ShortUrlsFilteringBar.tsx
@@ -58,7 +58,6 @@ export const ShortUrlsFilteringBar = (
(searchTerm) => toFirstPage({ search: searchTerm }),
);
const changeTagSelection = (selectedTags: string[]) => toFirstPage({ tags: selectedTags });
- const canChangeTagsMode = useFeature('allTagsFiltering');
const toggleTagsMode = pipe(
() => (tagsMode === 'any' ? 'all' : 'any'),
(mode) => toFirstPage({ tagsMode: mode }),
@@ -70,7 +69,7 @@ export const ShortUrlsFilteringBar = (
- {canChangeTagsMode && tags.length > 1 && (
+ {tags.length > 1 && (
<>