-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove tooltip, add link to upgrade button
- Loading branch information
Showing
9 changed files
with
22 additions
and
359 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
import HubButton from 'components/HubButton' | ||
import { darkTheme, lightTheme } from 'components/themes' | ||
import { useMemo } from 'react' | ||
import { ThemeProvider } from 'styled-components' | ||
|
||
export const App = ({ theme = 'light' }: { theme?: 'light' | 'dark' }) => { | ||
const safeTheme = useMemo(() => { | ||
if (!['light', 'dark'].includes(theme)) { | ||
return 'light' | ||
} | ||
return theme | ||
}, [theme]) | ||
|
||
return ( | ||
<ThemeProvider theme={safeTheme === 'dark' ? darkTheme : lightTheme}> | ||
<HubButton theme={safeTheme} /> | ||
</ThemeProvider> | ||
) | ||
export const App = () => { | ||
return <HubButton /> | ||
} | ||
|
||
export default App |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.