Move components into seperate folders
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
"private": true,
|
||||
"private": false,
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"main": "dist/index.esm.js",
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright 2020 Spotify AB
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { AuthProviders } from './AuthProviders';
|
||||
export { DefaultProviderSettings } from './DefaultProviderSettings';
|
||||
+1
-1
@@ -14,4 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { UserSettings } from './UserSettings';
|
||||
export { FeatureFlags } from './FeatureFlags';
|
||||
+1
-1
@@ -18,7 +18,7 @@ import { Grid, Typography } from '@material-ui/core';
|
||||
import React from 'react';
|
||||
import { SignInAvatar } from './SignInAvatar';
|
||||
import { UserSettingsMenu } from './UserSettingsMenu';
|
||||
import { useUserProfile } from './useUserProfileInfo';
|
||||
import { useUserProfile } from '../useUserProfileInfo';
|
||||
|
||||
export const Profile = () => {
|
||||
const { profile, displayName } = useUserProfile();
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
import React from 'react';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { makeStyles, Avatar } from '@material-ui/core';
|
||||
import { useUserProfile } from './useUserProfileInfo';
|
||||
import { useUserProfile } from '../useUserProfileInfo';
|
||||
import { sidebarConfig } from '@backstage/core';
|
||||
|
||||
const useStyles = makeStyles<BackstageTheme, { size: number }>(theme => ({
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright 2020 Spotify AB
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { General } from './General';
|
||||
export { SignInAvatar } from './SignInAvatar';
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import { SidebarItem } from '@backstage/core';
|
||||
import { SignInAvatar } from './SignInAvatar';
|
||||
import { SignInAvatar } from './General';
|
||||
import { useUserProfile } from './useUserProfileInfo';
|
||||
import { settingsRouteRef } from '../plugin';
|
||||
|
||||
|
||||
@@ -25,8 +25,7 @@ import {
|
||||
useApi,
|
||||
} from '@backstage/core';
|
||||
import { General } from './General';
|
||||
import { AuthProviders } from './AuthProviders';
|
||||
import { DefaultProviderSettings } from './DefaultProviderSettings';
|
||||
import { AuthProviders, DefaultProviderSettings } from './AuthProviders';
|
||||
import { FeatureFlags } from './FeatureFlags';
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user