@modern-js/devtools-client 0.0.0-nightly-20230918160602 → 0.0.0-nightly-20230922160540

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@ import { Suspense } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { useSnapshot } from 'valtio';
4
4
  import { Outlet, useNavigate, useLocation } from '@modern-js/runtime/router';
5
- import { Box, Text, Button } from '@radix-ui/themes';
5
+ import { Box } from '@radix-ui/themes';
6
6
  import _ from 'lodash';
7
- import { GearIcon, HomeIcon } from '@radix-ui/react-icons';
7
+ import { HomeIcon } from '@radix-ui/react-icons';
8
8
  import { useStore } from '@/stores';
9
9
  import { InternalTab } from '@/types';
10
10
  import Breadcrumbs from '@/components/Breadcrumbs';
@@ -48,10 +48,6 @@ export const RootTabs: React.FC = () => {
48
48
  ))}
49
49
  </TabList>
50
50
  <Box grow="1" />
51
- <SettingButton>
52
- <GearIcon />
53
- <Text>Settings</Text>
54
- </SettingButton>
55
51
  </TabNavigator>
56
52
  <TabContent>
57
53
  <Box grow="0">
@@ -72,11 +68,6 @@ export const RootTabs: React.FC = () => {
72
68
  );
73
69
  };
74
70
 
75
- const SettingButton = styled(Button)({
76
- '--accent-9': 'var(--gray-5)',
77
- '--accent-10': 'var(--gray-6)',
78
- });
79
-
80
71
  const IconBox = styled(Box)({
81
72
  width: '2rem',
82
73
  height: '2rem',
@@ -34,7 +34,7 @@ const Page: React.FC = () => {
34
34
  return (
35
35
  <Flex direction="column" align="center">
36
36
  <Flex gap="2">
37
- <img src={store.assets.logo} />
37
+ <LogoImage src={store.assets.logo} />
38
38
  <LogoHeading src={srcHeading} />
39
39
  </Flex>
40
40
  <Description>
@@ -120,3 +120,9 @@ const Description = styled(Text)({
120
120
  const LogoHeading = styled.img({
121
121
  width: '10rem',
122
122
  });
123
+
124
+ const LogoImage = styled.img({
125
+ width: '2rem',
126
+ height: '2rem',
127
+ objectFit: 'contain',
128
+ });