Skip to content

Commit d2a3cf7

Browse files
better naming
1 parent 759c974 commit d2a3cf7

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

components/chains/article-body/_children/TickarooComponent.jsx renamed to components/chains/article-body/_children/TickarooLiveblog.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect } from 'react';
22
import { useContent } from 'fusion:content'
33
import { TIK_USE_SEO } from 'fusion:environment';
44

5-
const TickarooView = ({ embed }) => {
5+
const TickarooLiveblogView = ({ embed }) => {
66

77
const content = useContent({
88
source: TIK_USE_SEO ? 'tickaroo-liveblog' : null,
@@ -61,4 +61,4 @@ const TickarooView = ({ embed }) => {
6161
</>;
6262
};
6363

64-
export default TickarooView;
64+
export default TickarooLiveblogView;

components/chains/article-body/default.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import TickarooComponent from './_children/TickarooComponent';
1+
import TickarooLiveblog from './_children/TickarooLiveblog';
22
import PropTypes from 'fusion:prop-types';
33

44
function parseArticleItem(item, index, arcSite, phrases, id, customFields) {
@@ -21,7 +21,7 @@ function parseArticleItem(item, index, arcSite, phrases, id, customFields) {
2121
case 'custom_embed':
2222
switch (item.subtype) {
2323
case 'Tickaroo Liveblog':
24-
return <TickarooComponent key={`${type}_${index}_${key}`} embed={item.embed} />;
24+
return <TickarooLiveblog key={`${type}_${index}_${key}`} embed={item.embed} />;
2525
default:
2626
return null;
2727
}

components/features/TickarooLiveblogPowerUp/children/Tickaroo-edit.jsx renamed to components/features/TickarooLiveblogPowerUp/children/TickarooLiveblog-edit.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const handleSubmit = (liveblogId, themeId) => {
3434
sendMessage('data', ansCustomEmbed)
3535
}
3636

37-
const TickarooEdit = () => {
37+
const TickarooLiveblogEdit = () => {
3838
const [liveblogId, setLiveblogId] = useState('');
3939
const [themeId, setThemeId] = useState(TIK_THEMES[0].id);
4040
useEffect(() => {
@@ -157,4 +157,4 @@ const TickarooEdit = () => {
157157
);
158158
};
159159

160-
export default TickarooEdit;
160+
export default TickarooLiveblogEdit;

components/features/TickarooLiveblogPowerUp/children/Tickaroo-search.jsx renamed to components/features/TickarooLiveblogPowerUp/children/TickarooLiveblog-search.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const handleSubmit = (liveblogId, themeId) => {
3434
sendMessage('data', ansCustomEmbed)
3535
}
3636

37-
const TickarooSearch = () => {
37+
const TickarooLiveblogSearch = () => {
3838
const [liveblogId, setLiveblogId] = useState('');
3939
const [themeId, setThemeId] = useState(TIK_THEMES[0].id);
4040
const handleInputChange = (e) => {
@@ -138,4 +138,4 @@ const TickarooSearch = () => {
138138
);
139139
};
140140

141-
export default TickarooSearch;
141+
export default TickarooLiveblogSearch;

components/features/TickarooLiveblogPowerUp/children/Tickaroo-view.jsx renamed to components/features/TickarooLiveblogPowerUp/children/TickarooLiveblog-view.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const parseQueryString = function() {
2525
}, {})
2626
}
2727

28-
const TickarooView = () => {
28+
const TickarooLiveblogView = () => {
2929

3030
useEffect(() => {
3131
sendMessage('ready', {
@@ -154,4 +154,4 @@ const TickarooView = () => {
154154
</div></>;
155155
};
156156

157-
export default TickarooView;
157+
export default TickarooLiveblogView;

components/features/TickarooLiveblogPowerUp/powerup.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { useEffect, useState } from 'react';
22
import get from 'lodash.get';
3-
import TickarooSearch from './children/Tickaroo-search.jsx';
4-
import TickarooView from './children/Tickaroo-view.jsx';
5-
import TickarooEdit from './children/Tickaroo-edit.jsx';
3+
import TickarooLiveblogSearch from './children/TickarooLiveblog-search.jsx';
4+
import TickarooLiveblogView from './children/TickarooLiveblog-view.jsx';
5+
import TickarooLiveblogEdit from './children/TickarooLiveblog-edit.jsx';
66

77
//This component is the Block that is added to a page
88
//and it controls which frame to display based on the URL
@@ -23,9 +23,9 @@ const PowerUpTemplate = () => {
2323
width: '100%',
2424
}}
2525
>
26-
{actionID.includes('#SEARCH') && <TickarooSearch />}
27-
{actionID.includes('#VIEW') && <TickarooView />}
28-
{actionID.includes('#EDIT') && <TickarooEdit />}
26+
{actionID.includes('#SEARCH') && <TickarooLiveblogSearch />}
27+
{actionID.includes('#VIEW') && <TickarooLiveblogView />}
28+
{actionID.includes('#EDIT') && <TickarooLiveblogEdit />}
2929
</div>
3030
);
3131
};

0 commit comments

Comments
 (0)