Skip to content

Commit 06a325c

Browse files
committed
chore(demo): set default mode to text
1 parent 998a6b7 commit 06a325c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const randomWithDigitChange = () => {
1616

1717
function App() {
1818
// 状态定义
19-
const [heroMode, setHeroMode] = useState<'price' | 'text' | 'intl-currency'>('price');
19+
const [heroMode, setHeroMode] = useState<'price' | 'text' | 'intl-currency'>('text');
2020
const [heroPrice, setHeroPrice] = useState(1345.56);
21-
const [heroText, setHeroText] = useState('Success');
21+
const [heroText, setHeroText] = useState('Smart Ticker');
2222

2323
// Intl State
2424
const [activeFormatter, setActiveFormatter] = useState<Intl.NumberFormat>(new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }));

0 commit comments

Comments
 (0)