File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useContext } from "react" ;
2+ import styled from "styled-components" ;
23import { ContentWrapper , ListItem , TextMessage } from "~components/layout/Content" ;
34import { LazyList , ScrollableList } from "~components/Lists" ;
45import { useFilteredData } from "./utils/filtering" ;
@@ -7,6 +8,13 @@ import { SchemaEnumView } from "./SchemaEnum";
78import { Declaration } from "~components/Docs/api" ;
89import { DeclarationsContext } from "~components/Docs/DeclarationsContext" ;
910
11+ const OffsetsNote = styled . div `
12+ font-size: 14px;
13+ color: ${ ( props ) => props . theme . textDim } ;
14+ text-align: center;
15+ padding: 8px 4px 0;
16+ ` ;
17+
1018function renderItem ( declaration : Declaration ) {
1119 let children : React . JSX . Element ;
1220 switch ( declaration . kind ) {
@@ -42,6 +50,7 @@ export function ContentList() {
4250 ) : (
4351 < TextMessage > Choose a class or enum from the sidebar, or use search...</ TextMessage >
4452 ) }
53+ { data . length > 0 && < OffsetsNote > Offsets are from Windows build xxx</ OffsetsNote > }
4554 </ ContentWrapper >
4655 ) ;
4756}
You can’t perform that action at this time.
0 commit comments