Skip to content

Commit

Permalink
refactor(website): replace broken search bar with documentation link (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric authored Dec 3, 2024
1 parent 4df5eed commit eb5e551
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 595 deletions.
1 change: 0 additions & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"core-js": "^3.6.5",
"custom-protocol-check": "^1.4.0",
"date-fns": "^1.30.1",
"docsearch.js": "^2.6.3",
"es6-error": "^4.1.1",
"escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5",
Expand Down
13 changes: 10 additions & 3 deletions website/src/client/components/EditorToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import * as React from 'react';
import EditorTitle from './EditorTitle';
import type { EditorModal } from './EditorViewProps';
import usePreferences from './Preferences/usePreferences';
import SearchBar from './Search/SearchBar';
import ToolbarShell from './Shell/ToolbarShell';
import ToolbarTitleShell from './Shell/ToolbarTitleShell';
import UserMenu from './UserMenu';
import Button from './shared/Button';
import Button, { LinkButton } from './shared/Button';
import IconButton from './shared/IconButton';
import { SaveStatus, SaveHistory, Viewer, SaveOptions, SDKVersion } from '../types';
import { useOrbit } from '../utils/orbit';
Expand Down Expand Up @@ -86,7 +85,15 @@ export default function EditorToolbar(props: Props) {
/>
</ToolbarTitleShell>
<div className={css(styles.buttons)}>
<SearchBar sdkVersion={sdkVersion} />
<LinkButton
variant="tetriary"
target="_blank"
href={
sdkVersion ? `https://docs.expo.dev/versions/v${sdkVersion}/` : 'https://docs.expo.dev/'
}
>
Expo Docs
</LinkButton>
<Button
variant="primary"
onClick={() => onPublishAsync()}
Expand Down
126 changes: 0 additions & 126 deletions website/src/client/components/Search/SearchBar.tsx

This file was deleted.

Loading

0 comments on commit eb5e551

Please sign in to comment.