Skip to content
Snippets Groups Projects
Select Git revision
  • ccee770a1b5cb8d06eb7f3bb6480eaa2c03ac405
  • master default protected
  • Audacity_3.5.1_FontBold
  • Audacity_3.5.1
  • release-3.2.3
  • alpha-3.2.0
  • darkaudacity
  • mac-2.1.1-vi
  • DarkAudacity-2.3.2x
  • Audacity-2.3.2
  • Audacity-2.3.1
  • Audacity-2.3.0
  • Audacity-2.2.2
  • Audacity-2.2.2-beta-20180128
  • Audacity-2.2.1
  • Audacity-2.2.1-rc3
  • Audacity-2.2.1-rc2
  • Audacity-2.2.1-rc1
  • Audacity-2.2.0
  • Audacity-2.2.0-rc1
  • Audacity-2.2.0-beta-20170901
  • Audacity-2.1.3
  • DarkAudacity-2.1.3x
  • Audacity-2.1.2
  • wx3-stable
  • wx3-unstable
  • Audacity-2.1.1
  • Audacity-2.1.0
28 results

EffectUI.cpp

Blame
  • Forked from Hwanyong Lee / audacity-kr-font
    Source project has a limited visibility.
    App.js 791 B
    import React, { useState } from 'react';
    
    
    const TimeButton = (props) => {
      let [time,setTime]=useState(null);
    
      const displayTime = () => {
        let date = new Date();
        setTime(date.toLocaleString('ko-KR',{timeZone : props.tz}));
      }
      
    
      return (
        <>
        <button onClick={displayTime} tz={props.tz}> {props.cn}</button>
        <div id = "time">{time}</div>
        </>
      );
    }  
    
    
    
    const App = () => {
        const cityList = [{ cityName : "Seoul", timezone : "Asia/Seoul"}, { cityName : "Tokyo", timezone : "Asia/Tokyo" }, {cityName :"Lagos", timezone : "Africa/Lagos" }]
    
        return (
          <>
          <h1> What time is it? </h1>
          {
            cityList.map((name)=> {
              return <TimeButton tz={name.timezone} cn = {name.cityName}/> })
          }
          </>
        );
    }
    
    export default App;