-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into new-activity-feed-page
- Loading branch information
Showing
3 changed files
with
63 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
apps/dashboard/src/components/workflow-editor/steps/configure-step-template-cta.tsx
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
apps/dashboard/src/components/workflow-editor/steps/configure-step-template-issue-cta.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Button } from '@/components/primitives/button'; | ||
import { SidebarContent } from '@/components/side-navigation/sidebar'; | ||
import TruncatedText from '@/components/truncated-text'; | ||
import { StepDataDto } from '@novu/shared'; | ||
import { RiArrowRightUpLine } from 'react-icons/ri'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
type ConfigureStepTemplateIssueCtaProps = { | ||
step: StepDataDto; | ||
issue: string; | ||
}; | ||
export const ConfigureStepTemplateIssueCta = (props: ConfigureStepTemplateIssueCtaProps) => { | ||
const { step, issue } = props; | ||
|
||
return ( | ||
<SidebarContent> | ||
<div className="flex items-center justify-between"> | ||
<span className="text-xs font-medium">Action required</span> | ||
<Link | ||
to="https://docs.novu.co/sdks/framework/typescript/steps/inApp" | ||
reloadDocument | ||
className="text-xs" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<span>Help?</span> | ||
</Link> | ||
</div> | ||
<Link to={'./edit'} relative="path" state={{ stepType: step.type }}> | ||
<Button variant="outline" className="flex w-full justify-start gap-1.5 text-xs font-medium" type="button"> | ||
<span className="bg-destructive h-4 min-w-1 rounded-full" /> | ||
<TruncatedText>{issue}</TruncatedText> | ||
<RiArrowRightUpLine className="text-destructive ml-auto h-4 w-4" /> | ||
</Button> | ||
</Link> | ||
</SidebarContent> | ||
); | ||
}; |