Skip to content

Commit

Permalink
fix: [M3-7256] - Added spacing for Hively external link (#9776)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
  • Loading branch information
jaalah-akamai and jaalah authored Oct 11, 2023
1 parent 5ba8ec5 commit 2d6019b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-9776-fixed-1696956017237.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Customer success Hively overlap issue ([#9776](https://github.com/linode/manager/pull/9776))
24 changes: 24 additions & 0 deletions packages/manager/src/features/Support/Hively.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';

import { Hively } from './Hively';

import type { Meta, StoryObj } from '@storybook/react';

const meta: Meta<typeof Hively> = {
args: {
linodeUsername: 'linodeuser',
replyId: '123',
ticketId: '123',
},
component: Hively,
title: 'Components/Hively',
};

export default meta;

type Story = StoryObj<typeof Hively>;

export const Default: Story = {
args: {},
render: (args) => <Hively {...args} />,
};
9 changes: 8 additions & 1 deletion packages/manager/src/features/Support/Hively.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ import { parseAPIDate } from 'src/utilities/date';
import { OFFICIAL_USERNAMES } from './ticketUtils';

interface Props {
/** The username of the Linode user who created the ticket. */
linodeUsername: string;
/** The ID of the reply. */
replyId: string;
/** The ID of the ticket. */
ticketId: string;
}

Expand Down Expand Up @@ -48,7 +51,11 @@ export const Hively = (props: Props) => {
<>
<Divider />
<Stack alignItems="center" direction="row" pl={1} spacing={1.5}>
<Typography mr={3}>
<Typography
sx={{
padding: '2px 20px 2px 0',
}}
>
<Link external to={href + '3'}>
How did I do?
</Link>
Expand Down

0 comments on commit 2d6019b

Please sign in to comment.