Skip to content

Commit

Permalink
fix : color variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyyChoi committed Aug 19, 2023
1 parent f091247 commit 77a40c6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/StationDetailType.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useState} from 'react';
import {Text, Box, useInput, Newline} from 'ink';
import shoplist from './examples/shoplist.js';
import theme from './Theme.js';

const StationDetailType = ({station, setlist, setStation}) => {
const [num, setNum] = useState(1);
Expand Down Expand Up @@ -43,10 +44,12 @@ const StationDetailType = ({station, setlist, setStation}) => {
<Box flexDirection="column">
<Text color="#00FF19">&#60; {station} &#62;</Text>
<Box marginY={1} flexDirection="column">
<Text color={num == 1 ? '#AD00FF' : '#00FF19'}>1. 맛집</Text>
<Text color={num == 2 ? '#AD00FF' : '#00FF19'}>2. 카페</Text>
<Text color={num == 3 ? '#AD00FF' : '#00FF19'}>3. 액티비티</Text>
<Text color={num == 4 ? '#AD00FF' : '#00FF19'}>4. 술집</Text>
<Text color={num == 1 ? theme.purple : theme.neonGreen}>1. 맛집</Text>
<Text color={num == 2 ? theme.purple : theme.neonGreen}>2. 카페</Text>
<Text color={num == 3 ? theme.purple : theme.neonGreen}>
3. 액티비티
</Text>
<Text color={num == 4 ? theme.purple : theme.neonGreen}>4. 술집</Text>
</Box>
{type ? <Text color="red"> ==&#62; {type}</Text> : ''}
</Box>
Expand Down

0 comments on commit 77a40c6

Please sign in to comment.