This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Flow() { | |
| const steps = ['new account', 'enter OTP', 'add pfp', 'add bio...' ] // The names doesn't matter, as long as its an array | |
| const [step, setStep] = useState(0) | |
| const handleNextStep = () => { | |
| if(step < steps.length - 1) // limit max steps | |
| setStep(prev => prev + 1) | |
| } | |
| const handlePrevStep = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Cocoa | |
| import FlutterMacOS | |
| import SwiftUI | |
| // Relevant blog post: https://blog.whidev.com/menu-bar-extra-flutter-macos-app | |
| struct Shortcut { | |
| var combination: String | |
| var description: String | |
| var createdAt: Int |