Skip to content

Commit

Permalink
🐛 fix: Fix func name
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 13, 2023
1 parent dcec69f commit 12aa1ae
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/ColorStudio/components/AccessPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useThemeMode } from 'antd-style';
import { useControls, useCreateStore } from 'leva';
import { memo } from 'react';
import type { IScales } from 'src/genScalesByConfig';
import styled from 'styled-components';

import type { IScales } from '@/genScales';
import type { IPanel } from '@/index';
import { AccessBlock, AccessibilityTag, LevaPanel, PanelGroup, genScaleTestList } from '@/index';

Expand Down
2 changes: 1 addition & 1 deletion src/ColorStudio/components/ExportPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useControls, useCreateStore } from 'leva';
import { memo, useCallback } from 'react';
import styled from 'styled-components';

import type { IEditorConfig } from '@/genScales/defaultConfig';
import type { IEditorConfig } from '@/genScalesByConfig/defaultConfig';
import type { IPanel } from '@/index';
import { LevaPanel, PanelGroup, useDownload } from '@/index';

Expand Down
2 changes: 1 addition & 1 deletion src/ColorStudio/components/ThreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Center, Environment, OrbitControls } from '@react-three/drei';
import { Canvas } from '@react-three/fiber';
import { useTheme, useThemeMode } from 'antd-style';
import { Suspense, memo, useRef } from 'react';
import type { IScales } from 'src/genScalesByConfig';

import type { IScales } from '@/genScales';
import { GenColor3D } from '@/index';

const cube = [
Expand Down
2 changes: 1 addition & 1 deletion src/ColorStudio/components/TokenView.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Highlighter } from 'dumi-theme-antd-style';
import { camelCase, kebabCase } from 'lodash-es';
import { memo } from 'react';
import type { IScales } from 'src/genScalesByConfig';

import type { IScales } from '@/genScales';
import { colorTypeFormat, getAlphaColor } from '@/index';
import { CodeView } from '@/styles';

Expand Down
4 changes: 2 additions & 2 deletions src/ColorStudio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Tabs } from 'antd';
import type { TabsProps } from 'antd';
import { useControls, useCreateStore } from 'leva';
import { type ReactNode, memo, useEffect, useMemo, useState } from 'react';

import {
type IEditorConfig,
type IScales,
Expand All @@ -23,7 +22,8 @@ import {
stepConfig,
threeConfig,
tokenConfig,
} from '@/genScales';
} from 'src/genScalesByConfig';

import {
AccessPanel,
ColorsList,
Expand Down
2 changes: 1 addition & 1 deletion src/ScaleBlock/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Space } from 'antd';
import { memo } from 'react';
import type { IScales } from 'src/genScalesByConfig';
import styled from 'styled-components';

import type { IScales } from '@/genScales';
import { ScaleRow, getAlphaColor } from '@/index';

/******************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/ScalePreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { ActionIcon, CollapseTitle } from '@ant-design/pro-editor';
import { Space } from 'antd';
import { useThemeMode } from 'antd-style';
import { memo, useRef } from 'react';
import type { IEditorConfig, IScales } from 'src/genScalesByConfig';
import { defaultEditorConfig } from 'src/genScalesByConfig';
import styled from 'styled-components';

import type { ISchemaItem } from '@/ColorStudio/components';
import type { IEditorConfig, IScales } from '@/genScales';
import { defaultEditorConfig } from '@/genScales';
import { AccessibilityTag, ScaleBlock, genScaleTestList, useSketchJSON } from '@/index';

const Collapse: any = CollapseTitle;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,6 @@ export default () => {
title: 'Red',
type: 'normal',
},
{
color: '#e09f00',
darkColor: '#be8600',
id: 'Yellow',
title: 'Yellow',
type: 'normal',
},
{
color: '#67c03a',
darkColor: '#4ca41f',
id: 'Green',
title: 'Green',
type: 'normal',
},
{
color: '#00bec3',
darkColor: '#00a1a5',
id: 'Sky',
title: 'Sky',
type: 'normal',
},
{
color: '#9b59eb',
darkColor: '#9b59eb',
id: 'Purple',
title: 'Purple',
type: 'normal',
},
],
generate: {
dark: {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export {
type IColorConfig,
type IColorScaleItem,
type IColorScales,
} from '@/genScales';
} from 'src/genScalesByConfig';
// Hook
export { default as ThemeProvider } from './ThemeProvider';
export { default as useDownload } from './useDownload';
export { default as useSketchJSON } from './useSketchJSON';
export * from './utils';
export { type IEditorConfig } from '@/genScales/defaultConfig';
export { type IEditorConfig } from '@/genScalesByConfig/defaultConfig';
2 changes: 1 addition & 1 deletion src/utils/genScaleTestList.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IScales } from '@/genScales';
import { IScales } from 'src/genScalesByConfig';

const genScaleTestList = (scales: IScales, color: [string, string]): [string, string][] => {
const lightColor = color[0];
Expand Down

0 comments on commit 12aa1ae

Please sign in to comment.