• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 2d66c210b3cdb04e0cabd3a27852287fa31a581c

14 May 2024 08:05AM UTC coverage: 53.131% (+0.9%) from 52.242%
2d66c210b3cdb04e0cabd3a27852287fa31a581c

push

github

YoastBot
Bump version to 22.7 on free

7464 of 13622 branches covered (54.79%)

Branch coverage included in aggregate %.

28518 of 54101 relevant lines covered (52.71%)

41520.75 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/js/src/components/slots/SidebarSlot.js
1
import { Slot } from "@wordpress/components";
2
import sortComponentsByRenderPriority from "../../helpers/sortComponentsByRenderPriority";
3
import TopLevelProviders from "../TopLevelProviders";
4
import { ErrorBoundary } from "@yoast/ui-library";
5
import { SidebarErrorFallback } from "../sidebar-error-fallback";
6

7
/**
8
 * Renders the Sidebar slot.
9
 *
10
 * @param {Object} props The props.
11
 * @param {Object} props.theme The theme.
12
 *
13
 * @returns {null|wp.Element} The element.
14
 */
15
export default function SidebarSlot( { theme } ) {
16
        return (
×
17
                <TopLevelProviders
18
                        theme={ theme }
19
                        location={ "sidebar" }
20
                >
21
                        <ErrorBoundary FallbackComponent={ SidebarErrorFallback }>
22
                                <Slot name="YoastSidebar">
23
                                        { ( fills ) => {
24
                                                return sortComponentsByRenderPriority( fills );
×
25
                                        } }
26
                                </Slot>
27
                        </ErrorBoundary>
28
                </TopLevelProviders>
29
        );
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc