mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
moved some repeated code
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import ContentLoader from 'react-content-loader';
|
||||
import useBoardStore from '../useBoardStore';
|
||||
import useAppStore from '../useAppStore';
|
||||
|
||||
const SinglePostLoader = () => {
|
||||
const selectedStyle = useBoardStore((state) => state.selectedStyle);
|
||||
const selectedStyle = useAppStore((state) => state.selectedStyle);
|
||||
const backgroundColor = selectedStyle === 'Tomorrow' ? '#333' : '#f3f3f3';
|
||||
const foregroundColor = selectedStyle === 'Tomorrow' ? '#555' : '#ecebeb';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user