Skip to content

Commit 7b13034

Browse files
committed
fix: dashboard
1 parent 7c16900 commit 7b13034

File tree

7 files changed

+23
-18
lines changed

7 files changed

+23
-18
lines changed

dashboard/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const theme = extendTheme({
2323
styles: {
2424
global: {
2525
'html, body, #root': {
26-
fontFamily: 'Avenir, Helvetica, Arial, sans-serif',
2726
height: '100%',
2827
outline: 'none',
2928
},

dashboard/src/components/EnvComponents/OAuthConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const OAuthConfig = ({
2323
<div>
2424
<Box>
2525
<Text fontSize="md" paddingTop="2%" fontWeight="bold" mb={6}>
26-
Your instance information
26+
Authorizer Config
2727
</Text>
2828
<Stack spacing={6} padding="2% 0%">
2929
<Flex direction={isNotSmallerScreen ? 'row' : 'column'}>

dashboard/src/components/InputField.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
Textarea,
1414
Switch,
1515
Code,
16+
Text,
1617
} from '@chakra-ui/react';
1718
import {
1819
FaRegClone,
@@ -179,14 +180,14 @@ const InputField = ({
179180
if (Object.values(ArrayInputType).includes(inputType)) {
180181
return (
181182
<Flex
182-
border="1px solid #e2e8f0"
183-
w="100%"
184-
borderRadius={5}
185-
paddingTop="0.5%"
186-
overflowX={variables[inputType].length > 3 ? "scroll" : "hidden"}
187-
overflowY="hidden"
188-
justifyContent="start"
189-
alignItems="center"
183+
border="1px solid #e2e8f0"
184+
w="100%"
185+
borderRadius={5}
186+
paddingTop="0.5%"
187+
overflowX={variables[inputType].length > 3 ? 'scroll' : 'hidden'}
188+
overflowY="hidden"
189+
justifyContent="start"
190+
alignItems="center"
190191
>
191192
{variables[inputType].map((role: string, index: number) => (
192193
<Box key={index} margin="0.5%" role="group">
@@ -301,7 +302,9 @@ const InputField = ({
301302
if (Object.values(SwitchInputType).includes(inputType)) {
302303
return (
303304
<Flex w="25%" justifyContent="space-between">
304-
<Code h="75%">Off</Code>
305+
<Text h="75%" fontWeight="bold" marginRight="2">
306+
Off
307+
</Text>
305308
<Switch
306309
size="md"
307310
isChecked={variables[inputType]}
@@ -312,7 +315,9 @@ const InputField = ({
312315
});
313316
}}
314317
/>
315-
<Code h="75%">On</Code>
318+
<Text h="75%" fontWeight="bold" marginLeft="2">
319+
On
320+
</Text>
316321
</Flex>
317322
);
318323
}

dashboard/src/components/Menu.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ interface SidebarProps extends BoxProps {
119119

120120
export const Sidebar = ({ onClose, ...rest }: SidebarProps) => {
121121
const { pathname } = useLocation();
122-
const [{ fetching, data }] = useQuery({ query: MetaQuery });
122+
const [{ data }] = useQuery({ query: MetaQuery });
123123
const [isNotSmallerScreen] = useMediaQuery('(min-width:600px)');
124124
return (
125125
<Box
126126
transition="3s ease"
127127
bg={useColorModeValue('white', 'gray.900')}
128128
borderRight="1px"
129129
borderRightColor={useColorModeValue('gray.200', 'gray.700')}
130-
w={{ base: 'full', md: 60 }}
130+
w={{ base: 'full', md: '64' }}
131131
pos="fixed"
132132
h="full"
133133
{...rest}
@@ -137,7 +137,7 @@ export const Sidebar = ({ onClose, ...rest }: SidebarProps) => {
137137
alignItems="center"
138138
mx="18"
139139
justifyContent="space-between"
140-
flexDirection="column"
140+
flexDirection="row"
141141
>
142142
<NavLink to="/">
143143
<Flex alignItems="center" mt="6">
@@ -298,7 +298,7 @@ export const MobileNav = ({ onOpen, ...rest }: MobileProps) => {
298298

299299
return (
300300
<Flex
301-
ml={{ base: 0, md: 60 }}
301+
ml={{ base: 0, md: 64 }}
302302
px={{ base: 4, md: 4 }}
303303
height="20"
304304
position="fixed"

dashboard/src/layouts/AuthLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function AuthLayout({ children }: { children: React.ReactNode }) {
2020
alignItems="center"
2121
justifyContent="center"
2222
direction={['column', 'column']}
23+
padding={['2%', '2%', '2%', '2%']}
2324
>
2425
<Flex alignItems="center" maxW="100%">
2526
<Image

dashboard/src/layouts/DashboardLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function DashboardLayout({ children }: { children: ReactNode }) {
3131
</Drawer>
3232
{/* mobilenav */}
3333
<MobileNav onOpen={onOpen} />
34-
<Box ml={{ base: 0, md: 60 }} p="4" pt="24">
34+
<Box ml={{ base: 0, md: '64' }} p="4" pt="24">
3535
{children}
3636
</Box>
3737
</Box>

dashboard/src/pages/Auth.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ export default function Auth() {
101101
</FormControl>
102102
<Button
103103
isLoading={signUpResult.fetching || loginResult.fetching}
104+
loadingText="Submitting"
104105
colorScheme="blue"
105106
size="lg"
106107
w="100%"
107-
d="block"
108108
type="submit"
109109
>
110110
{isLogin ? 'Login' : 'Sign up'}

0 commit comments

Comments
 (0)