mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 23:02:56 +02:00
refactor(theme): nest theme icons under subfolder @theme/Icon/* (#7740)
This commit is contained in:
parent
c3ff131110
commit
d3d22d3a72
28 changed files with 39 additions and 39 deletions
|
@ -9,7 +9,7 @@ import React, {useState} from 'react';
|
|||
import clsx from 'clsx';
|
||||
import {useBlogPost} from '@docusaurus/theme-common/internal';
|
||||
import BlogPostItemHeaderAuthor from '@theme/BlogPostItem/Header/Author';
|
||||
import IconExpand from '@theme/IconExpand';
|
||||
import IconExpand from '@theme/Icon/Expand';
|
||||
import type {Props} from '@theme/BlogPostItem/Header/Authors';
|
||||
|
||||
import styles from './styles.module.css';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import React from 'react';
|
||||
|
||||
import type {Props} from '@theme/IconExpand';
|
||||
import type {Props} from '@theme/Icon/Expand';
|
||||
|
||||
export default function IconExpand({expanded, ...props}: Props): JSX.Element {
|
||||
if (expanded) {
|
|
@ -15,7 +15,7 @@ declare module '@theme/ChangelogItem/Header/Authors';
|
|||
declare module '@theme/ChangelogList';
|
||||
declare module '@theme/ChangelogList/Header';
|
||||
|
||||
declare module '@theme/IconExpand' {
|
||||
declare module '@theme/Icon/Expand' {
|
||||
import type {ComponentProps} from 'react';
|
||||
|
||||
export interface Props extends ComponentProps<'svg'> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue