diff --git a/packages/Layout/header/src/Title/Title.stories.tsx b/packages/Layout/header/src/HeaderTitle/HeaderTitle.stories.tsx
similarity index 85%
rename from packages/Layout/header/src/Title/Title.stories.tsx
rename to packages/Layout/header/src/HeaderTitle/HeaderTitle.stories.tsx
index 0702450e6..c08f30ac3 100644
--- a/packages/Layout/header/src/Title/Title.stories.tsx
+++ b/packages/Layout/header/src/HeaderTitle/HeaderTitle.stories.tsx
@@ -2,12 +2,12 @@ import React from 'react';
import { action } from '@storybook/addon-actions';
import { Meta } from '@storybook/react';
import Action from '@axa-fr/react-toolkit-action';
-import Title from './Title';
+import HeaderTitle from './HeaderTitle';
import readme from '../../README.md';
export default {
- title: 'Structure/Title Bar',
- component: Title,
+ title: 'Structure/Header/HeaderTitle',
+ component: HeaderTitle,
parameters: {
readme: {
sidebar: readme,
@@ -31,7 +31,7 @@ const actions = [
},
];
-export const Default = (args) =>
;
+export const Default = (args) => ;
Default.args = {
title: 'Toolkit Axa',
subtitle: 'Info complémentaire',
@@ -42,7 +42,7 @@ Default.argTypes = {
};
export const Complex = (args) => (
-
+
-
+
);
Complex.args = {
...Default.args,
diff --git a/packages/Layout/header/src/Title/Title.tsx b/packages/Layout/header/src/HeaderTitle/HeaderTitle.tsx
similarity index 97%
rename from packages/Layout/header/src/Title/Title.tsx
rename to packages/Layout/header/src/HeaderTitle/HeaderTitle.tsx
index 73d289e88..563f1f098 100644
--- a/packages/Layout/header/src/Title/Title.tsx
+++ b/packages/Layout/header/src/HeaderTitle/HeaderTitle.tsx
@@ -14,7 +14,7 @@ type Props = {
classModifier?: string;
isSticky?: boolean;
};
-const Title = ({
+const HeaderTitle = ({
title,
subtitle,
children,
@@ -64,4 +64,4 @@ const Title = ({
);
};
-export default Title;
+export default HeaderTitle;
diff --git a/packages/Layout/header/src/HeaderTitle/index.tsx b/packages/Layout/header/src/HeaderTitle/index.tsx
new file mode 100644
index 000000000..e3e3dd6a9
--- /dev/null
+++ b/packages/Layout/header/src/HeaderTitle/index.tsx
@@ -0,0 +1 @@
+export { default as HeaderTitle } from './HeaderTitle';
diff --git a/packages/Layout/header/src/Title/title-bar.scss b/packages/Layout/header/src/HeaderTitle/title-bar.scss
similarity index 100%
rename from packages/Layout/header/src/Title/title-bar.scss
rename to packages/Layout/header/src/HeaderTitle/title-bar.scss
diff --git a/packages/Layout/header/src/MenuTitleWrapper.stories.tsx b/packages/Layout/header/src/MenuTitleWrapper.stories.tsx
index f884e4481..355fae062 100644
--- a/packages/Layout/header/src/MenuTitleWrapper.stories.tsx
+++ b/packages/Layout/header/src/MenuTitleWrapper.stories.tsx
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import { Meta } from '@storybook/react';
import { NavBar, NavBarItem } from './NavBar';
-import { Title } from './Title';
+import { HeaderTitle } from './HeaderTitle';
export default {
title: 'Structure/Header/MenuTitleWrapper',
@@ -151,7 +151,7 @@ const MenuTitleWrapper = () => {
/>
- ', () => {
- it('renders Title correctly', () => {
+describe('', () => {
+ it('renders HeaderTitle correctly', () => {
const { asFragment } = render(
- null}
@@ -14,16 +14,16 @@ describe('', () => {
expect(asFragment()).toMatchSnapshot();
});
- it('renders Title correctly without menu', () => {
+ it('renders HeaderTitle correctly without menu', () => {
const { asFragment } = render(
-
+
);
expect(asFragment()).toMatchSnapshot();
});
- it('renders Title with classModifier', () => {
+ it('renders HeaderTitle with classModifier', () => {
const { asFragment } = render(
- renders Title correctly 1`] = `
+exports[` renders HeaderTitle correctly 1`] = `
renders Title correctly 1`] = `
`;
-exports[`
renders Title correctly without menu 1`] = `
+exports[` renders HeaderTitle correctly without menu 1`] = `
renders Title correctly without menu 1`] = `
`;
-exports[`
renders Title with classModifier 1`] = `
+exports[` renders HeaderTitle with classModifier 1`] = `