From 25af2e211aaf7a47e48d6fe6227ff000c938ef7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Wed, 19 Jun 2024 11:57:12 +0200 Subject: [PATCH] Change: Move useLicense hook to hooks directory The license feature is unused and could possibly removed completely. But until now we should get a consistent directory layout. --- src/web/components/notification/licensenotification.jsx | 3 +-- src/web/{utils => hooks}/useLicense.js | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename src/web/{utils => hooks}/useLicense.js (100%) diff --git a/src/web/components/notification/licensenotification.jsx b/src/web/components/notification/licensenotification.jsx index 31e65c0b19..3e9e30c0d8 100644 --- a/src/web/components/notification/licensenotification.jsx +++ b/src/web/components/notification/licensenotification.jsx @@ -3,7 +3,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ - import React from 'react'; import _ from 'gmp/locale'; @@ -17,7 +16,7 @@ import Link from 'web/components/link/link'; import InfoPanel from 'web/components/panel/infopanel'; import PropTypes from 'web/utils/proptypes'; -import useLicense from 'web/utils/useLicense'; +import useLicense from 'web/hooks/useLicense'; const LICENSE_EXPIRATION_THRESHOLD = 30; diff --git a/src/web/utils/useLicense.js b/src/web/hooks/useLicense.js similarity index 100% rename from src/web/utils/useLicense.js rename to src/web/hooks/useLicense.js