MCPcopy Create free account
hub / github.com/microsoft/SandDance / render

Method render

extensions/common-frontend/src/app.tsx:147–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 render() {
148 return (
149 <SandDanceExplorer.Explorer
150 logoClickUrl="https://microsoft.github.io/SandDance/"
151 theme={this.state.darkTheme && 'dark-theme'}
152 viewerOptions={this.viewerOptions}
153 initialView="2d"
154 mounted={e => this.mounted(e)}
155 compactUI={this.state.compactUI}
156 additionalSettings={[
157 {
158 groupLabel: strings.labelPreferences,
159 children: (
160 <FluentUIReact.Toggle
161 label={strings.labelCompactUI}
162 title={strings.labelCompactUIDescription}
163 checked={this.state.compactUI}
164 onChange={(e, checked?) => {
165 this.vscode.postMessage({
166 command: 'setCompactUI',
167 compactUI: checked,
168 });
169 this.setState({ compactUI: checked });
170 }}
171 />
172 ),
173 },
174 ]}
175 />
176 );
177 }
178 }
179
180 const app = React.createElement(App);

Callers 1

app.tsxFile · 0.45

Calls 2

mountedMethod · 0.95
postMessageMethod · 0.65

Tested by

no test coverage detected