Skip to content

Commit db902cd

Browse files
committed
fix: sitemap build
1 parent c119e00 commit db902cd

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

packages/addons/sitemap/admin/components/Header/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { Check } from '@strapi/icons';
1010
import { discardAllChanges, submit } from '../../state/actions/Sitemap';
1111

1212
const Header = () => {
13-
const settings = useSelector((state: any) => state.getIn(['sitemap', 'settings'], Map()));
14-
const initialData = useSelector((state: any) => state.getIn(['sitemap', 'initialData'], Map()));
13+
const settings = useSelector((state) => state.getIn(['sitemap', 'settings'], Map()));
14+
const initialData = useSelector((state) => state.getIn(['sitemap', 'initialData'], Map()));
1515
const { toggleNotification } = useNotification();
1616
const { put } = getFetchClient();
1717

packages/addons/sitemap/admin/components/Info/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import { generateSitemap } from '../../state/actions/Sitemap';
1616
import { formatTime } from '../../helpers/timeFormat';
1717

1818
const Info = () => {
19-
const hasHostname = useSelector((state: any) => state.getIn(['sitemap', 'initialData', 'hostname'], Map()));
20-
const sitemapInfo = useSelector((state: any) => state.getIn(['sitemap', 'info'], Map()));
19+
const hasHostname = useSelector((state) => state.getIn(['sitemap', 'initialData', 'hostname'], Map()));
20+
const sitemapInfo = useSelector((state) => state.getIn(['sitemap', 'info'], Map()));
2121
const dispatch = useDispatch();
2222
const { toggleNotification } = useNotification();
2323
const { get } = getFetchClient();

packages/addons/sitemap/admin/components/List/Collection/Row.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useSelector } from 'react-redux';
1313
import getSelectedContentType from '../../../helpers/getSelectedContentType';
1414

1515
const CustomRow = ({ openModal, entry }) => {
16-
const contentTypes = useSelector((store: any) => store.getIn(['sitemap', 'contentTypes'], {}));
16+
const contentTypes = useSelector((store) => store.getIn(['sitemap', 'contentTypes'], {}));
1717

1818
const handleEditClick = (e) => {
1919
openModal(entry.name, entry.langcode);

packages/addons/sitemap/admin/components/List/Collection/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const ListComponent = (props) => {
2828

2929
items.forEach((item, key) => {
3030
item.get('languages').forEach((langItem, langKey) => {
31-
const formattedItem: any = {};
31+
const formattedItem = {};
3232
formattedItem.name = key;
3333
formattedItem.langcode = langKey;
3434
formattedItem.pattern = langItem.get('pattern');

packages/addons/sitemap/admin/components/List/Custom/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const ListComponent = (props) => {
2727
}
2828

2929
items.forEach((item, key) => {
30-
const formattedItem: any = {};
30+
const formattedItem = {};
3131
formattedItem.name = key;
3232
formattedItem.priority = item.get('priority');
3333
formattedItem.changefreq = item.get('changefreq');

packages/addons/sitemap/admin/components/Loader/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react';
22
import { Loader as LoaderComponent } from '@strapi/design-system';
33

44
const Loader = () => {
5-
const style: React.CSSProperties = {
5+
const style = {
66
display: 'flex',
77
justifyContent: 'center',
88
height: '100%',
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pluginId from './pluginId';
22

3-
const getTrad = (id: string) => `${pluginId}.${id}`;
3+
const getTrad = (id) => `${pluginId}.${id}`;
44

55
export default getTrad;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PLUGIN_ID from './pluginId';
22

3-
const getTranslation = (id: string) => `${PLUGIN_ID}.${id}`;
3+
const getTranslation = (id) => `${PLUGIN_ID}.${id}`;
44

55
export default getTranslation;

packages/addons/sitemap/admin/helpers/pluginId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ import pluginPkg from '../../package.json';
55
*
66
* @return {string} The plugin id.
77
*/
8-
const pluginId: string = pluginPkg.strapi.name;
8+
const pluginId = pluginPkg.strapi.name;
99

1010
export default pluginId;

packages/addons/sitemap/admin/tabs/CollectionURLs/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import List from '../../components/List/Collection';
1212
import ModalForm from '../../components/ModalForm';
1313

1414
const CollectionURLs = () => {
15-
const state = useSelector((store: any) => store.get('sitemap', Map()));
15+
const state = useSelector((store) => store.get('sitemap', Map()));
1616
const dispatch = useDispatch();
1717
const [modalOpen, setModalOpen] = useState(false);
1818
const [uid, setUid] = useState(null);

0 commit comments

Comments
 (0)