refactor(theme): nest theme icons under subfolder @theme/Icon/* (#7740)

This commit is contained in:
Sébastien Lorber 2022-07-08 16:56:53 +02:00 committed by GitHub
parent c3ff131110
commit d3d22d3a72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 39 additions and 39 deletions

View file

@ -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';

View file

@ -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) {

View file

@ -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'> {