Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ VITE_LOCAL_USERNAME=

VITE_ENABLE_LOGS=

#----#

# Link used in the "Documentation" button. Should point to the online documentation.
VITE_DOCUMENTATION_URL=
19 changes: 8 additions & 11 deletions src/Components/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export const AppHeader: React.FC = () => {

const bridgeColor = getConnectionStatusColor();
const controllerColor = getControllerColor();
const documentationUrl = import.meta.env.VITE_DOCUMENTATION_URL;

const statusStyle: React.CSSProperties = {
display: 'inline-flex',
Expand Down Expand Up @@ -173,16 +172,14 @@ export const AppHeader: React.FC = () => {
</Text>
</div>
</Tooltip>
{documentationUrl && (
<Tooltip title="Documentation">
<Button
icon={isMobile ? <ReadOutlined /> : undefined}
onClick={() => window.open(documentationUrl, '_blank')}
>
{!isMobile && 'Documentation'}
</Button>
</Tooltip>
)}
<Tooltip title="Documentation">
<Button
icon={isMobile ? <ReadOutlined /> : undefined}
onClick={() => window.open('https://docs.sentience-robotics.fr/share/p1x9ikjkhf/p/public-documentation-EExgMX2REV', '_blank')}
>
{!isMobile && 'Documentation'}
</Button>
</Tooltip>
<Tooltip title="Settings">
<Button icon={<SettingOutlined />} onClick={() => setIsSettingsModalVisible(true)} />
</Tooltip>
Expand Down