Skip to content

Commit 0164211

Browse files
committed
Renamed TidCarouselV2 to TidCarouselV2Animated.
1 parent c566367 commit 0164211

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

stories/2.OurComponents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ As a helpful resource, here is a summary of existing components (each a **clicka
1818

1919
- <LinkTo kind="compdem/client-participation/CivicTechTO/CurateV2" story="Interactive">`CurateV2`</LinkTo>
2020
(Replaces <LinkTo kind="compdem/client-participation/Curate" story="Interactive">`Curate`</LinkTo>)
21-
- <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2" story="Interactive">`TidCarouselV2`</LinkTo>
21+
- <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2Animated" story="Interactive">`TidCarouselV2Animated`</LinkTo>
2222
and <LinkTo kind="compdem/client-participation/CivicTechTO/TidCarouselV2Static" story="Interactive">`TidCarouselV2Static`</LinkTo>
2323
(Replaces <LinkTo kind="compdem/client-participation/TidCarousel" story="Interactive">`TidCarousel`</LinkTo>)
2424
- <LinkTo kind="compdem/client-participation/CivicTechTO/SelectionWidgetV2" story="Interactive">`SelectionWidgetV2`</LinkTo>

stories/compdem/client-participation/CivicTechTO/SelectionWidgetV2.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as globals from '../../../../codebases/compdem/client-participation/vis
44
import Strings from '../../../../codebases/compdem/client-participation/js/strings/en_us'
55
import { getMath, getComments } from '../../../../.storybook/utils'
66
import { withParticipationThemeUi } from '../../../../.storybook/decorators'
7-
import TidCarouselV2 from './TidCarouselV2'
7+
import TidCarouselV2Animated from './TidCarouselV2Animated'
88
import TidCarouselV2Static from './TidCarouselV2Static'
99
import CurateV2 from './CurateV2'
1010

@@ -52,7 +52,7 @@ const SelectionWidgetV2 = React.forwardRef(({isStatic, isAccessible, math}, ref)
5252
rowGap: 5,
5353
}
5454
}
55-
const TidCarouselComponent = isStatic ? TidCarouselV2Static : TidCarouselV2
55+
const TidCarouselComponent = isStatic ? TidCarouselV2Static : TidCarouselV2Animated
5656
return (
5757
<div ref={ref} style={styles.container}>
5858
<CurateV2

stories/compdem/client-participation/CivicTechTO/TidCarouselV2.js renamed to stories/compdem/client-participation/CivicTechTO/TidCarouselV2Animated.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const TidCarouselButton = ({ label, isShown, isSelected, handleClick, con
5454
)
5555
}
5656

57-
const TidCarouselV2 = React.forwardRef(({
57+
const TidCarouselV2Animated = React.forwardRef(({
5858
selectedTidCuration,
5959
allComments,
6060
commentsToShow,
@@ -98,4 +98,4 @@ const TidCarouselV2 = React.forwardRef(({
9898
)
9999
})
100100

101-
export default TidCarouselV2
101+
export default TidCarouselV2Animated

stories/compdem/client-participation/CivicTechTO/TidCarouselV2.stories.js renamed to stories/compdem/client-participation/CivicTechTO/TidCarouselV2Animated.stories.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import React from 'react'
22
import { action } from '@storybook/addon-actions'
33
import Strings from '../../../../codebases/compdem/client-participation/js/strings/en_us'
44
import { getComments, getMath } from '../../../../.storybook/utils'
5-
import TidCarouselV2 from './TidCarouselV2'
5+
import TidCarouselV2Animated from './TidCarouselV2Animated'
66

77
const mathResult = getMath()
88
const commentsData = getComments()
99

1010
export default {
11-
component: TidCarouselV2,
11+
component: TidCarouselV2Animated,
1212
argTypes: {
1313
selectedTidCuration: {
1414
// TODO: Figure out why null does infinite renders.
@@ -42,7 +42,7 @@ const Template = (args) => {
4242
if (!commentsToShow.map(c => c.tid).includes(selectedComment?.tid)) {
4343
handleCommentClick(commentsToShow[0])
4444
}
45-
return <TidCarouselV2 {...args} {...{
45+
return <TidCarouselV2Animated {...args} {...{
4646
handleCommentClick,
4747
selectedComment,
4848
commentsToShow,

0 commit comments

Comments
 (0)