Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch - Fixed Mobile UI for DAO Creator #882

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
"html-react-parser": "^5.0.6",
"https-browserify": "^1.0.0",
"jsonschema": "^1.4.0",
"launchdarkly-react-client-sdk": "2.27.0",
"mixpanel-browser": "^2.42.0",
"notistack": "^1.0.3",
"numbro": "^2.4.0",
Expand Down
6 changes: 1 addition & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react"
import "App.css"
import { withLDProvider } from "launchdarkly-react-client-sdk"
import { BrowserRouter as Router, Redirect, Route, Switch } from "react-router-dom"
import mixpanel from "mixpanel-browser"
import { QueryClient, QueryClientProvider } from "react-query"
Expand Down Expand Up @@ -162,7 +161,4 @@ const App: React.FC = () => {

const env = getEnv(EnvKey.REACT_APP_ENV)

export default withLDProvider({
clientSideID:
env === "PROD" ? getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_PROD) : getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_DEV)
})(App)
export default App
8 changes: 6 additions & 2 deletions src/modules/creator/steps/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,15 @@ export const Template = (): JSX.Element => {
setError(false)
setTemplate(templateValue)
}

console.log({ isMobileSmall })
return (
<Box>
<TitleBlock title={"DAO Creator"} description={"Create an organization by picking a template below."} />
<Grid container justifyContent={isMobileSmall ? "center" : "space-between"} direction="row">
<Grid
container
justifyContent={isMobileSmall ? "center" : "space-between"}
direction={isMobileSmall ? "column" : "row"}
>
{isEtherLink ? (
<Tooltip title="Full DAO is available on Tezos Networks">
<LambdaCustomBoxFullDao
Expand Down
4 changes: 1 addition & 3 deletions src/services/config/hooks/featureFlags.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { useFlags } from "launchdarkly-react-client-sdk"
import { FeatureFlag } from "services/config/constants"

export const useFeatureFlag = (featureFlag: FeatureFlag) => {
const flags = useFlags()
return flags[featureFlag] ?? false
return false
}
Loading