Skip to content

Commit

Permalink
Formatted designer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu committed May 31, 2023
1 parent 3b1c398 commit 001e9c9
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions apps/console/app/routes/apps/$clientId/designer.beta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ const DesignerTab = ({
selected: boolean
}) => (
<div
className={`box-border -mb-0.5 mr-8 pb-4 px-1 flex flex-row items-center gap-2 border-b-2 ${selected ? 'border-indigo-600' : 'border-transparent'
}`}
className={`box-border -mb-0.5 mr-8 pb-4 px-1 flex flex-row items-center gap-2 border-b-2 ${
selected ? 'border-indigo-600' : 'border-transparent'
}`}
>
<Icon
className={`w-5 h-5 ${selected ? 'text-indigo-600' : 'text-gray-500'}`}
Expand Down Expand Up @@ -174,8 +175,9 @@ const RadiusButton = ({
return (
<button
type="button"
className={`w-full py-1.5 px-2.5 rounded-md ${selected ? 'bg-indigo-500' : ''
}`}
className={`w-full py-1.5 px-2.5 rounded-md ${
selected ? 'bg-indigo-500' : ''
}`}
onClick={(e) => {
e.preventDefault()
setRadius(radius)
Expand Down Expand Up @@ -318,10 +320,10 @@ const AuthPanel = ({
}[]
>(
appTheme?.providers ??
AuthenticationScreenDefaults.knownKeys.map((k) => ({
key: k,
enabled: true,
}))
AuthenticationScreenDefaults.knownKeys.map((k) => ({
key: k,
enabled: true,
}))
)
const [providerModalOpen, setProviderModalOpen] = useState<boolean>(false)

Expand Down Expand Up @@ -537,7 +539,7 @@ const AuthPanel = ({
minWidth={720}
minHeight={1080}
id="image"
setIsFormChanged={(val) => { }}
setIsFormChanged={(val) => {}}
setIsImgUploading={(val) => {
setLoading(val)
}}
Expand Down Expand Up @@ -682,8 +684,8 @@ const AuthPanel = ({
'urn:rollupid:address/0xc2b930f1fc2a55ddc1bf99e8844ca0479567ac44f3e2eea58216660e26947686',
},
]}
selectEmailCallback={() => { }}
addNewEmailCallback={() => { }}
selectEmailCallback={() => {}}
addNewEmailCallback={() => {}}
connectedAccounts={[
{
address: 'email@example.com',
Expand Down Expand Up @@ -715,14 +717,14 @@ const AuthPanel = ({
},
]}
connectedSmartContractWallets={[]}
addNewAccountCallback={() => { }}
addNewSmartWalletCallback={() => { }}
selectSmartWalletCallback={() => { }}
selectAccountsCallback={() => { }}
addNewAccountCallback={() => {}}
addNewSmartWalletCallback={() => {}}
selectSmartWalletCallback={() => {}}
selectAccountsCallback={() => {}}
// disableAuthorize={true}
transitionState={'idle'}
cancelCallback={() => { }}
authorizeCallback={() => { }}
cancelCallback={() => {}}
authorizeCallback={() => {}}
radius={radius}
/>
</Tab.Panel>
Expand Down Expand Up @@ -813,7 +815,7 @@ const EmailPanel = ({
height: 1,
}}
id="logoURL"
setIsFormChanged={(val) => { }}
setIsFormChanged={(val) => {}}
setIsImgUploading={(val) => {
setLoading(val)
}}
Expand Down Expand Up @@ -1022,12 +1024,12 @@ export const action: ActionFunction = getRollupReqFunctionErrorWrapper(
color:
color && colorDark
? {
light: color,
dark: colorDark,
}
: theme?.color,
graphicURL: graphicURL ?? theme?.graphicURL,
providers: providers ?? theme?.providers,
light: color,
dark: colorDark,
}
: theme?.color,
graphicURL: graphicURL ?? theme?.graphicURL,
providers: providers ?? theme?.providers,
}

const zodErrors = await AppThemeSchema.spa(theme)
Expand Down

0 comments on commit 001e9c9

Please sign in to comment.