From c8138a1b66d6e80e13fdde8cb921325456d138b2 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 27 Nov 2023 14:25:45 +0100 Subject: [PATCH] [joy-ui][docs] Fix h1 template (#40017) --- .../getting-started/templates/email/App.tsx | 9 +-- .../email/components/EmailContent.tsx | 3 - .../templates/email/components/Header.tsx | 2 - .../templates/email/components/Layout.tsx | 12 ++-- .../templates/email/components/Mails.tsx | 2 - .../templates/email/components/Navigation.tsx | 1 - .../templates/email/components/WriteEmail.tsx | 3 - .../getting-started/templates/files/App.tsx | 7 --- .../templates/files/components/Header.tsx | 3 - .../templates/files/components/Layout.tsx | 12 ++-- .../templates/files/components/Menu.tsx | 9 +-- .../templates/files/components/Navigation.tsx | 1 - .../templates/files/components/TableFiles.tsx | 7 +-- .../templates/framesx-web-blocks/App.tsx | 2 - .../framesx-web-blocks/blocks/HeroLeft01.tsx | 1 - .../framesx-web-blocks/blocks/HeroLeft03.tsx | 1 - .../framesx-web-blocks/blocks/HeroLeft04.tsx | 1 - .../framesx-web-blocks/blocks/HeroLeft05.tsx | 1 - .../framesx-web-blocks/blocks/HeroLeft06.tsx | 1 - .../messages/components/AvatarWithStatus.tsx | 8 +-- .../messages/components/ChatBubble.tsx | 10 +--- .../messages/components/ChatListItem.tsx | 9 +-- .../messages/components/ChatsPane.tsx | 9 +-- .../messages/components/ColorSchemeToggle.tsx | 11 ++-- .../messages/components/MessageInput.tsx | 7 +-- .../messages/components/MessagesPane.tsx | 5 +- .../components/MessagesPaneHeader.tsx | 5 +- .../templates/messages/components/MuiLogo.tsx | 5 +- .../messages/components/MyMessages.tsx | 6 +- .../templates/messages/components/Sidebar.tsx | 18 +----- .../templates/messages/useScript.ts | 4 +- .../templates/messages/utils.ts | 24 ++++---- .../templates/order-dashboard/App.tsx | 21 +++---- .../components/ColorSchemeToggle.tsx | 11 ++-- .../order-dashboard/components/MuiLogo.tsx | 5 +- .../order-dashboard/components/OrderList.tsx | 2 +- .../order-dashboard/components/OrderTable.tsx | 19 ++----- .../order-dashboard/components/Sidebar.tsx | 5 +- .../templates/order-dashboard/useScript.ts | 4 +- .../templates/order-dashboard/utils.ts | 12 ++-- .../templates/profile-dashboard/App.tsx | 11 +--- .../components/ColorSchemeToggle.tsx | 9 +-- .../components/CountrySelector.tsx | 5 +- .../profile-dashboard/components/DropZone.tsx | 12 +--- .../components/EditorToolbar.tsx | 6 +- .../components/FileUpload.tsx | 24 ++++---- .../profile-dashboard/components/MuiLogo.tsx | 5 +- .../components/MyProfile.tsx | 56 +++---------------- .../profile-dashboard/components/Sidebar.tsx | 9 +-- .../templates/profile-dashboard/useScript.ts | 4 +- .../templates/profile-dashboard/utils.ts | 12 ++-- .../templates/rental-dashboard/App.tsx | 3 - .../components/ColorSchemeToggle.tsx | 11 ++-- .../components/CountrySelector.tsx | 5 +- .../components/HeaderSection.tsx | 1 - .../rental-dashboard/components/MuiLogo.tsx | 5 +- .../components/RentalCard.tsx | 10 +--- .../components/ToggleGroup.tsx | 3 +- .../templates/sign-in-side/App.tsx | 14 ++--- .../getting-started/templates/team/App.tsx | 3 - .../templates/team/components/Header.tsx | 2 - .../templates/team/components/Layout.tsx | 14 ++--- .../templates/team/components/Navigation.tsx | 1 - 63 files changed, 152 insertions(+), 351 deletions(-) diff --git a/docs/data/joy/getting-started/templates/email/App.tsx b/docs/data/joy/getting-started/templates/email/App.tsx index 3863d2c15bb20a..50c05cf57a3ac7 100644 --- a/docs/data/joy/getting-started/templates/email/App.tsx +++ b/docs/data/joy/getting-started/templates/email/App.tsx @@ -7,13 +7,11 @@ import Typography from '@mui/joy/Typography'; import Button from '@mui/joy/Button'; import Stack from '@mui/joy/Stack'; -// Icons import import CreateRoundedIcon from '@mui/icons-material/CreateRounded'; import EmailRoundedIcon from '@mui/icons-material/EmailRounded'; import PeopleAltRoundedIcon from '@mui/icons-material/PeopleAltRounded'; import FolderRoundedIcon from '@mui/icons-material/FolderRounded'; -// custom import Layout from './components/Layout'; import Navigation from './components/Navigation'; import Mails from './components/Mails'; @@ -108,12 +106,7 @@ export default function EmailExample() { justifyContent: 'space-between', }} > - + My inbox diff --git a/docs/data/joy/getting-started/templates/email/components/EmailContent.tsx b/docs/data/joy/getting-started/templates/email/components/EmailContent.tsx index 730300d012f94f..4efb1aaba21f42 100644 --- a/docs/data/joy/getting-started/templates/email/components/EmailContent.tsx +++ b/docs/data/joy/getting-started/templates/email/components/EmailContent.tsx @@ -12,7 +12,6 @@ import Divider from '@mui/joy/Divider'; import Avatar from '@mui/joy/Avatar'; import Tooltip from '@mui/joy/Tooltip'; -// Icons import import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded'; import ForwardToInboxRoundedIcon from '@mui/icons-material/ForwardToInboxRounded'; import FolderIcon from '@mui/icons-material/Folder'; @@ -171,7 +170,6 @@ export default function EmailContent() { > Details for our Yosemite Park hike - to - {}}> steve@mail.com diff --git a/docs/data/joy/getting-started/templates/email/components/Header.tsx b/docs/data/joy/getting-started/templates/email/components/Header.tsx index 9fbc266e856bfe..c227a68dad9e56 100644 --- a/docs/data/joy/getting-started/templates/email/components/Header.tsx +++ b/docs/data/joy/getting-started/templates/email/components/Header.tsx @@ -17,7 +17,6 @@ import Drawer from '@mui/joy/Drawer'; import ModalClose from '@mui/joy/ModalClose'; import DialogTitle from '@mui/joy/DialogTitle'; -// Icons import import SearchRoundedIcon from '@mui/icons-material/SearchRounded'; import DarkModeRoundedIcon from '@mui/icons-material/DarkModeRounded'; import LightModeRoundedIcon from '@mui/icons-material/LightModeRounded'; @@ -29,7 +28,6 @@ import OpenInNewRoundedIcon from '@mui/icons-material/OpenInNewRounded'; import LogoutRoundedIcon from '@mui/icons-material/LogoutRounded'; import MenuRoundedIcon from '@mui/icons-material/MenuRounded'; -// Custom import Navigation from './Navigation'; function ColorSchemeToggle() { diff --git a/docs/data/joy/getting-started/templates/email/components/Layout.tsx b/docs/data/joy/getting-started/templates/email/components/Layout.tsx index 505bf26d71c71c..20701467d6d287 100644 --- a/docs/data/joy/getting-started/templates/email/components/Layout.tsx +++ b/docs/data/joy/getting-started/templates/email/components/Layout.tsx @@ -106,16 +106,16 @@ function Main(props: BoxProps) { ); } -function SideDrawer({ - onClose, - ...props -}: BoxProps & { onClose: React.MouseEventHandler }) { +function SideDrawer( + props: BoxProps & { onClose: React.MouseEventHandler }, +) { + const { onClose, ...other } = props; return ( - {item.date} -
{item.title} diff --git a/docs/data/joy/getting-started/templates/email/components/Navigation.tsx b/docs/data/joy/getting-started/templates/email/components/Navigation.tsx index f5030de22590ee..6c725c168539c9 100644 --- a/docs/data/joy/getting-started/templates/email/components/Navigation.tsx +++ b/docs/data/joy/getting-started/templates/email/components/Navigation.tsx @@ -7,7 +7,6 @@ import ListItemButton from '@mui/joy/ListItemButton'; import ListItemDecorator from '@mui/joy/ListItemDecorator'; import ListItemContent from '@mui/joy/ListItemContent'; -// Icons import import InboxRoundedIcon from '@mui/icons-material/InboxRounded'; import OutboxRoundedIcon from '@mui/icons-material/OutboxRounded'; import DraftsRoundedIcon from '@mui/icons-material/DraftsRounded'; diff --git a/docs/data/joy/getting-started/templates/email/components/WriteEmail.tsx b/docs/data/joy/getting-started/templates/email/components/WriteEmail.tsx index b3089673e6201f..c3fc753bf8a088 100644 --- a/docs/data/joy/getting-started/templates/email/components/WriteEmail.tsx +++ b/docs/data/joy/getting-started/templates/email/components/WriteEmail.tsx @@ -47,7 +47,6 @@ const WriteEmail = React.forwardRef( New message - @@ -59,9 +58,7 @@ const WriteEmail = React.forwardRef( CC - -