Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: [M3-6307] - MUIv5 Migration - SRC > Components > CopyTooltip #9040

Merged
merged 4 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Added:
- Metadata
- Add No Results section for Marketplace Search #8999
- Add Private IP checkbox when cloning a Linode #9039

### Changed:
- `<RegionSelect />` can now dynamically get country flag and group all countrys #8996
Expand All @@ -33,6 +34,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- MUIv5 Migration - Components > CreateLinodeDisabled #9015
- MUIv5 Migration - `Components > DateTimeDisplay, DebouncedSearchTextField` #9007
- MUIv5 Migration - `SRC > Components > ConfirmationDialog` #9016
- MUIv5 Migration - `SRC > Components > CopyTooltip` #9040
- - MUIv5 Migration - `SRC > Components > CopyTooltip` #9040
- Add basic Adobe Analytics tracking #8989

## [2023-04-18] - v1.91.1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs';
import CopyTooltip from 'src/components/CopyTooltip/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';

<Meta
title="Elements/Tooltip/Copy Tooltip"
component={CopyTooltip}
decorators={[
(Story) => (
<div style={{marginTop: '1.5em'}}>
<div style={{ marginTop: '1.5em' }}>
<Story />
</div>
)
),
]}
/>

export const Template = (args) => {
return (
<CopyTooltip {...args} />
);
return <CopyTooltip {...args} />;
};

# Copy Tooltip
Expand All @@ -42,4 +40,4 @@ If horizontal space is limited, truncate the content.
</Story>
</Canvas>

<ArgsTable story="Copy Tooltip" exclude={['className']} sort="requiredFirst"/>
<ArgsTable story="Copy Tooltip" sort="requiredFirst" />
2 changes: 0 additions & 2 deletions packages/manager/src/components/CopyTooltip/CopyTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,3 @@ export const CopyTooltip = (props: Props) => {
</ToolTip>
);
};

export default CopyTooltip;
2 changes: 0 additions & 2 deletions packages/manager/src/components/CopyTooltip/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import snakeCase from 'lodash/snakeCase';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import DownloadTooltip from 'src/components/DownloadTooltip';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
import TextField, { Props as TextFieldProps } from 'src/components/TextField';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
import { Dialog } from 'src/components/Dialog/Dialog';
import CopyTooltip from '../CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { sendCLIClickEvent } from 'src/utilities/ga';

const useStyles = makeStyles((theme: Theme) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Theme, useTheme } from '@mui/material/styles';
import * as React from 'react';
import { Link, useHistory } from 'react-router-dom';
import Button from 'src/components/Button';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Chip from 'src/components/core/Chip';
import Divider from 'src/components/core/Divider';
import Typography from 'src/components/core/Typography';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as React from 'react';
import DownloadIcon from 'src/assets/icons/lke-download.svg';
import Button from 'src/components/Button';
import { CircleProgress } from 'src/components/CircleProgress';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Box from 'src/components/core/Box';
import Typography from 'src/components/core/Typography';
import { TooltipIcon } from 'src/components/TooltipIcon/TooltipIcon';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TransferEntities } from '@linode/api-v4/lib/entity-transfers';
import * as React from 'react';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Hidden from 'src/components/core/Hidden';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import Download from 'src/assets/icons/download.svg';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Grid from '@mui/material/Unstable_Grid2';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PoolNodeResponse } from '@linode/api-v4/lib/kubernetes';
import { APIError } from '@linode/api-v4/lib/types';
import * as React from 'react';
import { Link } from 'react-router-dom';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
import TableBody from 'src/components/core/TableBody';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';

import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Typography from 'src/components/core/Typography';
import Grid from 'src/components/Grid';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { ObjectStorageKey } from '@linode/api-v4/lib/object-storage';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { makeStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
import TableBody from 'src/components/core/TableBody';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
updateObjectACL,
} from '@linode/api-v4/lib/object-storage';
import * as React from 'react';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Divider from 'src/components/core/Divider';
import { makeStyles } from '@mui/styles';
import Typography from 'src/components/core/Typography';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
} from '@linode/api-v4/lib/object-storage';
import * as React from 'react';
import { Link } from 'react-router-dom';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Divider from 'src/components/core/Divider';
import { makeStyles } from '@mui/styles';
import Typography from 'src/components/core/Typography';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Link } from 'react-router-dom';
import { HashLink } from 'react-router-hash-link';
import { compose } from 'recompose';
import Button from 'src/components/Button';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Box from 'src/components/core/Box';
import Chip from 'src/components/core/Chip';
import Hidden from 'src/components/core/Hidden';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import HighlightedMarkdown from 'src/components/HighlightedMarkdown';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { sendEvent } from 'src/utilities/ga';
import { useCodeBlockStyles } from './styles';
export interface Props {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { compose as recompose } from 'recompose';
import AddNewLink from 'src/components/AddNewLink';
import Button from 'src/components/Button';
import { CircleProgress } from 'src/components/CircleProgress';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import Hidden from 'src/components/core/Hidden';
import Paper from 'src/components/core/Paper';
import { createStyles, withStyles, WithStyles } from '@mui/styles';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy from 'copy-to-clipboard';
import { tail } from 'ramda';
import * as React from 'react';
import CopyTooltip from 'src/components/CopyTooltip';
import { CopyTooltip } from 'src/components/CopyTooltip/CopyTooltip';
import { createStyles, withStyles, WithStyles } from '@mui/styles';
import { Theme } from '@mui/material/styles';
import ShowMore from 'src/components/ShowMore';
Expand Down