mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 15:47:08 +00:00
Remove unused data-cy attributes
This commit is contained in:
@@ -74,7 +74,7 @@ export function ProjectCreation() {
|
||||
<TextInput class={`btn btn-input${!creating && invalidNamespace ? ' invalid' : ''}`} placeholder={locale('project.namespace')} value={namespace} onChange={setNamespace} />
|
||||
{!creating && invalidNamespace && <div class="status-icon danger tooltipped tip-e" aria-label={locale('project.namespace.invalid')}>{Octicon.issue_opened}</div>}
|
||||
</div>
|
||||
<BtnMenu icon="tag" label={version} tooltip={locale('switch_version')} data-cy="version-switcher">
|
||||
<BtnMenu icon="tag" label={version} tooltip={locale('switch_version')}>
|
||||
{versions.map(v =>
|
||||
<Btn label={v} active={v === version} onClick={() => setVersion(v)} />
|
||||
)}
|
||||
|
||||
@@ -216,7 +216,7 @@ export function SourcePanel({ docAndNode, doCopy, doDownload, doImport, copySucc
|
||||
{window.matchMedia('(pointer: coarse)').matches && <>
|
||||
<Btn icon="paste" onClick={importFromClipboard} />
|
||||
</>}
|
||||
<BtnMenu icon="gear" tooltip={locale('output_settings')} data-cy="source-controls">
|
||||
<BtnMenu icon="gear" tooltip={locale('output_settings')}>
|
||||
{getSourceIndents().map(key =>
|
||||
<Btn label={locale(`indentation.${key}`)} active={indent === key}
|
||||
onClick={() => changeIndent(key)}/>
|
||||
|
||||
@@ -80,7 +80,7 @@ export function Tree({ docAndNode: original, onError }: TreePanelProps) {
|
||||
return type
|
||||
}, [resourceType, ctx])
|
||||
|
||||
return <div class="tree node-root" data-cy="tree" data-category={getCategory(resourceType)}>
|
||||
return <div class="tree node-root" data-category={getCategory(resourceType)}>
|
||||
{(ctx && mcdocType) && <McdocRoot type={mcdocType} node={fileChild.children[0]} makeEdit={makeEdit} ctx={ctx} />}
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user