Skip to content

Commit 5792635

Browse files
committed
chore(search): add settings
1 parent cf341b0 commit 5792635

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

template-search-extension/src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const links = {
6262
* 'settings' : For your widget settings
6363
* 'globalSettings' : For global settings used by platform admin.
6464
*/
65-
const components = ['content'];
65+
const components = ['content', 'settings'];
6666

6767
// Whether the extension is public or not in the marketplace.
6868
const isPublic = true;
@@ -78,7 +78,7 @@ const whitelist = [];
7878
// do not change the following unless you know what you are doing
7979
const config = {
8080
availability,
81-
category: 'search',
81+
category: 'widget',
8282
components,
8383
description,
8484
extensionId,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* Do not modify unless you know what you are doing
3+
*/
4+
export { SearchSettings } from './widget/SearchSettings';

template-search-extension/src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ import { Playground, store } from '@lumapps-extensions-playground/devenv';
77
import '@lumx/core/lumx.css';
88

99
import config from './config.js';
10+
import { SearchSettings } from './index.settings';
1011

1112
ReactDOM.render(
1213
<React.StrictMode>
1314
<Provider store={store}>
1415
<Playground
1516
config={config as import('lumapps-sdk-js').ExtensionConfig}
17+
SettingsComponent={SearchSettings}
1618
/>
1719
</Provider>
1820
</React.StrictMode>,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import { SettingsComponent } from 'lumapps-sdk-js';
3+
4+
export type SearchSettingsTab = {};
5+
6+
type SearchSettingsProps = SettingsComponent<any, SearchSettingsTab>;
7+
8+
export const SearchSettings: SearchSettingsProps = ({ exportProp, properties = {} }) => {
9+
return <></>;
10+
};

0 commit comments

Comments
 (0)