Skip to content

Commit

Permalink
move type Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Jan 8, 2024
1 parent cf4ba6a commit 33cb83b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/DashboardStation/DashboardStation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React from 'react';

import { ReactNode, useEffect, useState } from 'react';
import { Theme } from '../Icons';
import { Theme } from '../../util/types';

export interface IDashboardStationProps {
imagesDark: ReactNode[];
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icons/Svg/Massa/StationLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import React from 'react';

import { ComponentPropsWithoutRef } from 'react';
import { Theme } from '../../../../util/types';

export type Theme = 'theme-light' | 'theme-dark';
interface SVGProps extends ComponentPropsWithoutRef<'div'> {
theme?: Theme | undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ThemeMode/ThemeMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
import { useState } from 'react';
import { FiMoon, FiSun } from 'react-icons/fi';
import { useLocalStorage } from '../../util/useLocalStorage';
import { Theme } from '../Icons';
import { Theme } from '../../util/types';

interface ThemeProps {
onSetTheme?: (theme: Theme) => void;
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './components';
import './global.css';
export * from './util/types';
1 change: 1 addition & 0 deletions src/util/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type Theme = 'theme-light' | 'theme-dark';

0 comments on commit 33cb83b

Please sign in to comment.