chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

@@ -10,7 +10,7 @@ const ContextMenu = ({ items, ...props }) => {
return (
<div
data-cy="context-menu"
className="relative bg-secondary-dark rounded z-50 block w-48"
className="bg-secondary-dark relative z-50 block w-48 rounded"
onContextMenu={e => e.preventDefault()}
>
{items.map((item, index) => (
@@ -19,10 +19,15 @@ const ContextMenu = ({ items, ...props }) => {
data-cy="context-menu-item"
onClick={() => item.action(item, props)}
style={{ justifyContent: 'space-between' }}
className="flex px-4 py-3 cursor-pointer items-center transition duration-300 hover:bg-primary-dark border-b border-primary-dark last:border-b-0"
className="hover:bg-primary-dark border-primary-dark flex cursor-pointer items-center border-b px-4 py-3 transition duration-300 last:border-b-0"
>
<Typography>{item.label}</Typography>
{item.iconRight && <Icon name={item.iconRight} className="inline" />}
{item.iconRight && (
<Icon
name={item.iconRight}
className="inline"
/>
)}
</div>
))}
</div>
@@ -7,7 +7,10 @@ export const argTypes = {
title: 'Modals/ContextMenu',
};
<Meta title="Modals/ContextMenu" component={ContextMenu} />
<Meta
title="Modals/ContextMenu"
component={ContextMenu}
/>
export const contextMenueTemplate = createComponentTemplate(ContextMenu);
@@ -22,9 +25,8 @@ export const contextMenueTemplate = createComponentTemplate(ContextMenu);
## Overview
Context Menu is a component that is used to display a list of options to the
user. This component can be used for use cases such as opening a list of options
on user right click.
Context Menu is a component that is used to display a list of options to the user. This component
can be used for use cases such as opening a list of options on user right click.
<Canvas>
<Story