Skip to content

Commit

Permalink
refactor: [M3-6334] - MUI v5 - Components > EntityHeader (linode#9109)
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 committed May 15, 2023
1 parent 2fc19f0 commit 016cb74
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
16 changes: 13 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

### Added:
- Resource links to empty state Images landing page #9095
- Resource links to empty state Object Storage landing page #9098

### Changed:


### Fixed:

- Ability to search Linodes by IPv6 #9073

### Tech Stories:

- React Query - Linodes - Networking #9046
- React Query - Linodes - Details Header #9099
- MUI v5 Migration - `Components > IconButton` #9102
- MUI v5 Migration - `Components > EntityHeader` #9109

## [2023-05-15] - v1.93.0

Expand All @@ -19,8 +32,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Resource links to empty state Firewalls landing page #9078
- Resource links to empty state StackScripts landing page #9091
- Resource links to empty state Domains landing page #9092
- Resource links to empty state Images landing page #9095
- Resource links to empty state Object Storage landing page #9092
- Ability download DNS zone file #9075

### Changed:
Expand All @@ -43,7 +54,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- MUI v5 Migration - `Components > TableRow` #9082
- MUI v5 Migration - `Components > DownloadCSV` #9084
- MUI v5 Migration - `Components > Notice` #9094
- MUI v5 Migration - `Components > IconButton` #9102
- MUI v5 Migration - `Components > CheckoutSummary` #9100
- MUI v5 Migration - `Components > PrimaryNav` #9090
- React Query for Linodes Landing #9062
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import type { Meta, StoryObj } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import EntityHeader from './EntityHeader';
import { EntityHeader } from 'src/components/EntityHeader/EntityHeader';
import Button from '../Button';
import Link from '../Link';
import Box from 'src/components/core/Box';
Expand Down
6 changes: 2 additions & 4 deletions packages/manager/src/components/EntityHeader/EntityHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export interface HeaderProps {
variant?: TypographyProps['variant'];
}

export const EntityHeader: React.FC<HeaderProps> = ({
export const EntityHeader = ({
children,
isSummaryView,
title,
variant = 'h2',
}) => {
}: HeaderProps) => {
return (
<Wrapper>
{isSummaryView ? (
Expand All @@ -39,8 +39,6 @@ export const EntityHeader: React.FC<HeaderProps> = ({
);
};

export default EntityHeader;

const Wrapper = styled('div', {
name: 'EntityHeader',
})(({ theme }) => ({
Expand Down
5 changes: 0 additions & 5 deletions packages/manager/src/components/EntityHeader/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { sendLinodeActionMenuItemEvent } from 'src/utilities/ga';
import { pluralize } from 'src/utilities/pluralize';
import { ipv4TableID } from './LinodesDetail/LinodeNetworking/LinodeNetworking';
import { lishLink, sshLink } from './LinodesDetail/utilities';
import EntityHeader from 'src/components/EntityHeader';
import { EntityHeader } from 'src/components/EntityHeader/EntityHeader';
import {
getProgressOrDefault,
isEventWithSecondaryLinodeStatus,
Expand Down

0 comments on commit 016cb74

Please sign in to comment.