mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-27 21:55:15 -05:00
bg for progress in light
This commit is contained in:
@@ -83,7 +83,9 @@ const BuildStats: React.FC<BuildStatsProps> = ({
|
||||
toggleChart,
|
||||
progressBarValue = 0,
|
||||
}) => {
|
||||
const { darkerBgColor, themeColorWithShade } = useContext(MyThemeContext)
|
||||
const { darkerBgColor, themeColorWithShade, colorMode } = useContext(
|
||||
MyThemeContext
|
||||
)
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -131,6 +133,7 @@ const BuildStats: React.FC<BuildStatsProps> = ({
|
||||
value={progressBarValue}
|
||||
hasStripe
|
||||
isAnimated
|
||||
bg={colorMode === "dark" ? "#464b64" : `orange.100`}
|
||||
/>
|
||||
{otherEffect && (
|
||||
<>
|
||||
@@ -140,6 +143,7 @@ const BuildStats: React.FC<BuildStatsProps> = ({
|
||||
value={otherProgressBarValue}
|
||||
hasStripe
|
||||
isAnimated
|
||||
bg={colorMode === "dark" ? "#464b64" : `blue.100`}
|
||||
/>
|
||||
<Flex justifyContent="space-between">
|
||||
<Box />
|
||||
|
||||
@@ -36,7 +36,7 @@ const Voting: React.FC<VotingProps> = ({
|
||||
votedSoFar,
|
||||
eligibleVoters,
|
||||
}) => {
|
||||
const { themeColor, grayWithShade } = useContext(MyThemeContext)
|
||||
const { themeColor, grayWithShade, colorMode } = useContext(MyThemeContext)
|
||||
const { data, loading, error } = useQuery<UsersForVotingData>(
|
||||
USERS_FOR_VOTING
|
||||
)
|
||||
@@ -149,6 +149,7 @@ const Voting: React.FC<VotingProps> = ({
|
||||
<Progress
|
||||
value={(votedSoFar / eligibleVoters) * 100}
|
||||
color={themeColor}
|
||||
bg={colorMode === "dark" ? "#464b64" : `${themeColor}.100`}
|
||||
/>
|
||||
{votedSoFar}/{eligibleVoters} voted so far
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user