Skip to content

Commit e22117b

Browse files
remove unneeded props
1 parent 5e493c2 commit e22117b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

samples/file-picking/teams-picker/src/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function App() {
5656
<Route path="/termsofuse" element={<TermsOfUse />} />
5757
<Route path="/tab" element={<Tab />} />
5858
<Route path="/config" element={<TabConfig />} />
59-
<Route path="/picker-dialog" element={<PickerDialog host={window} />} />
59+
<Route path="/picker-dialog" element={<PickerDialog />} />
6060
<Route path="*" element={<Navigate to={"/tab"} />}></Route>
6161
</Routes>
6262
)}

samples/file-picking/teams-picker/src/components/PickerDialog.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ const params = {
3232
// For this sample we hard code it, you can get it various ways in your application
3333
const baseUrl = "https://{tenant}-my.sharepoint.com";
3434

35-
export interface PickerDialogProps {
36-
host: Window;
37-
}
38-
39-
export function PickerDialog(props: PickerDialogProps) {
35+
export function PickerDialog() {
4036

4137
const [contentWindow, setContentWindow] = useState<Window | null>(null);
4238

0 commit comments

Comments
 (0)