Skip to content

Commit

Permalink
chore: #1185 update "Ping" as hiperlink (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trường An authored May 14, 2020
1 parent 9cf14f4 commit 318c19b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import FormikAutoSave from '@/components/hocs/formik-auto-save'
import WebhookEditModal from '../ui/webhook-edit-modal'
import { selectDeveloperApps } from '@/selector/developer'
import WebhookTestModal from '../ui/webhook-test-modal'
import styles from '@/styles/elements/link.scss?mod'

export const CreatedCell = ({ cell: { value } }): ReactElement[] => {
return value.map((line, index) => <p key={index}>{line}</p>)
Expand Down Expand Up @@ -128,7 +129,11 @@ export const getTableTopicsData = ({
url: subscription.url,
topics: renderTopicName(topics, subscription.topicIds),
customer: renderCustomerName(subscription.customerIds),
test: <a onClick={() => handleOpenTestModal(subscription.id)}>Ping</a>,
test: (
<a className={styles.hyperlinked} onClick={() => handleOpenTestModal(subscription.id)}>
Ping
</a>
),
edit: (
<Button
dataTest="edit-btn"
Expand Down
5 changes: 5 additions & 0 deletions packages/marketplace/src/styles/elements/link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
color: $reapit-marketplace-link-color;
font-weight: $reapit-marketplace-link-font-weight;
}
.hyperlinked {
color: $reapit-mid-blue;
text-decoration: underline;
font-weight: bold;
}

0 comments on commit 318c19b

Please sign in to comment.