create-powerapps-project 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/plopfile.js
CHANGED
|
@@ -337,7 +337,7 @@ export default async (plop) => {
|
|
|
337
337
|
type: 'append',
|
|
338
338
|
path: `${process.cwd()}/eslint.config.mjs`,
|
|
339
339
|
pattern: 'reactPlugin.configs.flat.recommended,',
|
|
340
|
-
template: '\
|
|
340
|
+
template: '\treactHooksPlugin.configs.flat.recommended,',
|
|
341
341
|
separator: '\n'
|
|
342
342
|
},
|
|
343
343
|
{
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { IInputs } from './generated/ManifestTypes';
|
|
3
3
|
import { AppContext } from './contexts/AppContext';
|
|
4
|
+
import { FluentProvider, Theme } from "@fluentui/react-components";
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
+
export function App({ context }: { context: ComponentFramework.Context<IInputs>; }) {
|
|
6
7
|
return (
|
|
7
8
|
<AppContext.Provider value=\{{ context }}>
|
|
9
|
+
<FluentProvider theme={context.fluentDesignLanguage?.tokenTheme as Theme}>
|
|
10
|
+
</FluentProvider>
|
|
8
11
|
</AppContext.Provider>
|
|
9
12
|
);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
App.displayName = 'App';
|
|
13
|
+
}
|