Skip to content

Commit

Permalink
PlayButton: isExpanded prop added
Browse files Browse the repository at this point in the history
  • Loading branch information
nirnejak committed Oct 24, 2024
1 parent 82c714f commit c260733
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/PlayButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import * as React from "react"
import * as Tooltip from "@radix-ui/react-tooltip"

interface Props {
isExpanded: boolean
onClick: () => void
}

const PlayButton: React.FC<Props> = ({ onClick }) => {
const PlayButton: React.FC<Props> = ({ isExpanded, onClick }) => {
return (
<Tooltip.Provider delayDuration={200}>
<Tooltip.Root key={"Play Animation"}>
Expand Down
1 change: 1 addition & 0 deletions components/illustration/Alerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ const Alerts: React.FC<{ isExpanded?: boolean }> = ({ isExpanded = false }) => {
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ const Dashboard: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/DataChangeAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ const DataChangeAlert: React.FC<{ isExpanded?: boolean }> = ({
/>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/DataExport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ const DataExport: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/DataSourceConnection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const DataSourceConnection: React.FC<{ isExpanded?: boolean }> = ({
/>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/DataThresholdAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ const DataThresholdAlert: React.FC<{ isExpanded?: boolean }> = ({
/>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/GroupDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ const GroupDashboard: React.FC<{ isExpanded?: boolean }> = ({
/>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/Permissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ const Permissions: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/QueryBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ const QueryBuilder: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/SavedQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ const SavedQuery: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/SetAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ const SetAlerts: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/Sharing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ const Sharing: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/SlackAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ const SlackAlert: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/TimelyUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ const TimelyUpdates: React.FC<{ isExpanded?: boolean }> = ({
/>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down
1 change: 1 addition & 0 deletions components/illustration/Visualize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ const Visualize: React.FC<{ isExpanded?: boolean }> = ({
</defs>
</motion.svg>
<PlayButton
isExpanded={isExpanded}
onClick={() => {
playAnimation()
}}
Expand Down

0 comments on commit c260733

Please sign in to comment.