From ff26307b6b371ad12104324fb2dd326d0eab00dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Sun, 28 Mar 2021 13:33:54 +0200 Subject: [PATCH] Moving registrationLink component to the sidebar directory --- .../components/{ => sidebar}/registrationLink.scss | 0 .../components/{ => sidebar}/registrationLink.tsx | 13 +++++++------ webapp/src/components/sidebar/sidebarUserMenu.tsx | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) rename webapp/src/components/{ => sidebar}/registrationLink.scss (100%) rename webapp/src/components/{ => sidebar}/registrationLink.tsx (92%) diff --git a/webapp/src/components/registrationLink.scss b/webapp/src/components/sidebar/registrationLink.scss similarity index 100% rename from webapp/src/components/registrationLink.scss rename to webapp/src/components/sidebar/registrationLink.scss diff --git a/webapp/src/components/registrationLink.tsx b/webapp/src/components/sidebar/registrationLink.tsx similarity index 92% rename from webapp/src/components/registrationLink.tsx rename to webapp/src/components/sidebar/registrationLink.tsx index 742eb1934..1bdd2a22e 100644 --- a/webapp/src/components/registrationLink.tsx +++ b/webapp/src/components/sidebar/registrationLink.tsx @@ -3,13 +3,14 @@ import React, {useEffect, useState} from 'react' import {injectIntl, IntlShape} from 'react-intl' -import {IWorkspace} from '../blocks/workspace' -import {sendFlashMessage} from '../components/flashMessages' -import client from '../octoClient' -import {Utils} from '../utils' -import Button from '../widgets/buttons/button' +import {IWorkspace} from '../../blocks/workspace' +import {sendFlashMessage} from '../../components/flashMessages' +import client from '../../octoClient' +import {Utils} from '../../utils' +import Button from '../../widgets/buttons/button' + +import Modal from '../modal' -import Modal from './modal' import './registrationLink.scss' type Props = { diff --git a/webapp/src/components/sidebar/sidebarUserMenu.tsx b/webapp/src/components/sidebar/sidebarUserMenu.tsx index 4a7e26727..acabfa8b1 100644 --- a/webapp/src/components/sidebar/sidebarUserMenu.tsx +++ b/webapp/src/components/sidebar/sidebarUserMenu.tsx @@ -12,7 +12,8 @@ import Menu from '../../widgets/menu' import MenuWrapper from '../../widgets/menuWrapper' import ModalWrapper from '../modalWrapper' -import RegistrationLink from '../registrationLink' + +import RegistrationLink from './registrationLink' import './sidebarUserMenu.scss'