Skip to content
Merged
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
6 changes: 5 additions & 1 deletion frontend/src/components/EditorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,11 @@ const EditorPage: React.FC<EditorPageProps> = ({ onLogout }) => {
const [isCompactViewport, setIsCompactViewport] = useState<boolean>(() => isCompactEditorViewport());
const [sidebarOpen, setSidebarOpen] = useState<boolean>(() => !isCompactEditorViewport());
const wasCompactViewportRef = useRef<boolean>(isCompactViewport);
const [activityBarTab, setActivityBarTab] = useState<'explorer' | 'search' | 'git' | 'problems' | 'import' | 'debug' | 'extensions' | 'history'>('explorer');
// 'graph' is a member because the render branch at the bottom of this file
// compares against it. Without it that comparison is between types with no
// overlap, which tsc -b reports as TS2367 and treats as an error — failing
// `npm run build`, and with it the frontend stage of docker/Dockerfile.nginx.
const [activityBarTab, setActivityBarTab] = useState<'explorer' | 'search' | 'git' | 'problems' | 'import' | 'debug' | 'extensions' | 'history' | 'graph'>('explorer');
const [profileDropdownOpen, setProfileDropdownOpen] = useState<boolean>(false);
const [userData, setUserData] = useState<UserData | null>(null);
const [userRepos, setUserRepos] = useState<RepositorySearchResult[]>([]);
Expand Down
Loading