Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvuerings committed Aug 20, 2020
1 parent 35a7e6e commit 57554c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/src/components/App.js
Expand Up @@ -10,7 +10,7 @@ type Props = {|
children?: React.Node,
|};

const localStorageOrganizedByKey = 'gestalt-sitebar-organized-by';
const localStorageOrganizedByKey = 'gestalt-sidebar-organized-by';

export default function App(props: Props) {
const { children } = props;
Expand All @@ -19,7 +19,7 @@ export default function App(props: Props) {

useTracking('UA-12967896-44');

const [sidebarOrganisedBy, setSitebarOrganizedBy] = useState<
const [sidebarOrganisedBy, setSidebarOrganizedBy] = useState<
'categorized' | 'alphabetical'
>(() => {
try {
Expand All @@ -44,7 +44,7 @@ export default function App(props: Props) {
isSidebarOpen,
setIsSidebarOpen,
sidebarOrganisedBy,
setSitebarOrganizedBy,
setSidebarOrganizedBy,
}}
>
<Provider colorScheme={colorScheme}>
Expand Down
6 changes: 3 additions & 3 deletions docs/src/components/Header.js
Expand Up @@ -24,7 +24,7 @@ function Header({ colorScheme, onChangeColorScheme }: Props) {
isSidebarOpen,
setIsSidebarOpen,
sidebarOrganisedBy,
setSitebarOrganizedBy,
setSidebarOrganizedBy,
} = useSidebarContext();

const toggleRTL = () => {
Expand Down Expand Up @@ -116,15 +116,15 @@ function Header({ colorScheme, onChangeColorScheme }: Props) {
<Box display="flex" alignItems="center">
<IconButton
size="md"
accessibilityLabel="Toggle side bar categorization"
accessibilityLabel="Toggle sidebar categorization"
iconColor="white"
icon={
sidebarOrganisedBy === 'categorized'
? 'arrow-circle-down'
: 'folder'
}
onClick={() =>
setSitebarOrganizedBy(
setSidebarOrganizedBy(
sidebarOrganisedBy === 'categorized'
? 'alphabetical'
: 'categorized'
Expand Down

0 comments on commit 57554c0

Please sign in to comment.