Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(docs) - Fix basepath for homepage links

+25 -35
+13 -19
packages/site/src/components/sidebar.js
··· 3 3 import React, { Fragment, useMemo, useState } from 'react'; 4 4 import styled from 'styled-components'; 5 5 import Fuse from 'fuse.js'; 6 - import { useBasepath } from 'react-static'; 7 6 import { Link, useLocation } from 'react-router-dom'; 8 7 9 8 import { useMarkdownPage, useMarkdownTree } from 'react-static-plugin-md-pages'; ··· 47 46 padding-bottom: ${p => p.theme.spacing.lg}; 48 47 `; 49 48 50 - export const SidebarStyling = ({ children, sidebarOpen }) => { 51 - const basepath = useBasepath() || ''; 52 - const homepage = basepath ? `/${basepath}/` : '/'; 53 - 54 - return ( 55 - <> 56 - <SideBarStripes /> 57 - <SidebarContainer hidden={!sidebarOpen}> 58 - <SidebarWrapper> 59 - <HeroLogoLink to={homepage}> 60 - <HeroLogo /> 61 - </HeroLogoLink> 62 - <ContentWrapper>{children}</ContentWrapper> 63 - </SidebarWrapper> 64 - </SidebarContainer> 65 - </> 66 - ); 67 - }; 49 + export const SidebarStyling = ({ children, sidebarOpen }) => ( 50 + <> 51 + <SideBarStripes /> 52 + <SidebarContainer hidden={!sidebarOpen}> 53 + <SidebarWrapper> 54 + <HeroLogoLink to="/"> 55 + <HeroLogo /> 56 + </HeroLogoLink> 57 + <ContentWrapper>{children}</ContentWrapper> 58 + </SidebarWrapper> 59 + </SidebarContainer> 60 + </> 61 + ); 68 62 69 63 const getMatchTree = (() => { 70 64 const sortByRefIndex = (a, b) => a.refIndex - b.refIndex;
+12 -16
packages/site/src/screens/docs/header.js
··· 1 1 import React from 'react'; 2 2 import styled from 'styled-components'; 3 3 import { Link } from 'react-router-dom'; 4 - import { useBasepath } from 'react-static'; 5 4 6 5 import formidableLogo from '../../assets/logos/logo-formidable.svg'; 7 6 ··· 56 55 top: -0.1rem; 57 56 `; 58 57 59 - const Header = () => { 60 - const basepath = useBasepath() || ''; 61 - const homepage = basepath ? `/${basepath}/` : '/'; 62 - 63 - return ( 64 - <Fixed> 65 - <Wrapper> 66 - <BlockLink href="https://formidable.com/"> 67 - <FormidableLogo /> 68 - </BlockLink> 69 - <ProjectWording to={homepage}>urql</ProjectWording> 70 - </Wrapper> 71 - </Fixed> 72 - ); 73 - }; 58 + const Header = () => ( 59 + <Fixed> 60 + <Wrapper> 61 + <BlockLink href="https://formidable.com/"> 62 + <FormidableLogo /> 63 + </BlockLink> 64 + <ProjectWording to="/"> 65 + urql 66 + </ProjectWording> 67 + </Wrapper> 68 + </Fixed> 69 + ); 74 70 75 71 export default Header;