mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
fix: move api button to user menu
This commit is contained in:
@@ -90,17 +90,6 @@ const Header = (props: any) => {
|
|||||||
component={Link}
|
component={Link}
|
||||||
/>
|
/>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
<Button
|
|
||||||
href={`${baseUrl}/SASjsApi`}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
variant="contained"
|
|
||||||
color="primary"
|
|
||||||
size="large"
|
|
||||||
endIcon={<OpenInNewIcon />}
|
|
||||||
>
|
|
||||||
API Docs
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
href={`${baseUrl}/AppStream`}
|
href={`${baseUrl}/AppStream`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -110,7 +99,7 @@ const Header = (props: any) => {
|
|||||||
size="large"
|
size="large"
|
||||||
endIcon={<OpenInNewIcon />}
|
endIcon={<OpenInNewIcon />}
|
||||||
>
|
>
|
||||||
App Stream
|
Apps
|
||||||
</Button>
|
</Button>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
@@ -138,18 +127,6 @@ const Header = (props: any) => {
|
|||||||
open={!!anchorEl}
|
open={!!anchorEl}
|
||||||
onClose={handleClose}
|
onClose={handleClose}
|
||||||
>
|
>
|
||||||
<MenuItem sx={{ justifyContent: 'center' }}>
|
|
||||||
<Button
|
|
||||||
href={'https://server.sasjs.io'}
|
|
||||||
target="_blank"
|
|
||||||
rel="noreferrer"
|
|
||||||
variant="contained"
|
|
||||||
color="primary"
|
|
||||||
size="large"
|
|
||||||
>
|
|
||||||
Documentation
|
|
||||||
</Button>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem sx={{ justifyContent: 'center' }}>
|
<MenuItem sx={{ justifyContent: 'center' }}>
|
||||||
<Button
|
<Button
|
||||||
component={Link}
|
component={Link}
|
||||||
@@ -162,6 +139,32 @@ const Header = (props: any) => {
|
|||||||
Settings
|
Settings
|
||||||
</Button>
|
</Button>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
<MenuItem sx={{ justifyContent: 'center' }}>
|
||||||
|
<Button
|
||||||
|
href={'https://server.sasjs.io'}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
variant="contained"
|
||||||
|
size="large"
|
||||||
|
color="primary"
|
||||||
|
endIcon={<OpenInNewIcon />}
|
||||||
|
>
|
||||||
|
Docs
|
||||||
|
</Button>
|
||||||
|
</MenuItem>
|
||||||
|
<MenuItem sx={{ justifyContent: 'center' }}>
|
||||||
|
<Button
|
||||||
|
href={`${baseUrl}/SASjsApi`}
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
variant="contained"
|
||||||
|
color="primary"
|
||||||
|
size="large"
|
||||||
|
endIcon={<OpenInNewIcon />}
|
||||||
|
>
|
||||||
|
API
|
||||||
|
</Button>
|
||||||
|
</MenuItem>
|
||||||
<MenuItem onClick={handleLogout} sx={{ justifyContent: 'center' }}>
|
<MenuItem onClick={handleLogout} sx={{ justifyContent: 'center' }}>
|
||||||
<Button variant="contained" color="primary">
|
<Button variant="contained" color="primary">
|
||||||
Logout
|
Logout
|
||||||
|
|||||||
Reference in New Issue
Block a user