-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information about missing apps on the apps listing page (#5270)
* Apps footer * Update margin
- Loading branch information
1 parent
981a0bc
commit d677431
Showing
6 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
Now the list app page shows footer that allows the user to sumbmit a demanded 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 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { MISSING_APPS_TYPEFORM_URL } from "@dashboard/links"; | ||
import { Box, Button, Text } from "@saleor/macaw-ui-next"; | ||
import React from "react"; | ||
import { useIntl } from "react-intl"; | ||
|
||
import { messages } from "./messages"; | ||
|
||
const CONST_TYPEFORM_URL = `${MISSING_APPS_TYPEFORM_URL}?utm_button=${encodeURIComponent("Request integration")}`; | ||
|
||
export const MissingAppsFooter = () => { | ||
const intl = useIntl(); | ||
|
||
return ( | ||
<Box> | ||
<Box | ||
height="100%" | ||
width="100%" | ||
display="flex" | ||
alignItems="center" | ||
justifyContent="flex-start" | ||
flexDirection="column" | ||
marginBottom={20} | ||
> | ||
<Text marginTop={5} as="h1" fontSize={11} fontWeight="regular" marginBottom={7}> | ||
{intl.formatMessage(messages.missingAppsHeader)} | ||
</Text> | ||
<Text size={5} marginBottom={7}> | ||
{intl.formatMessage(messages.missingAppsDescription)} | ||
</Text> | ||
<Button target="_blank" as="a" size="large" paddingX={10} href={CONST_TYPEFORM_URL}> | ||
{intl.formatMessage(messages.missingAppsButton)} | ||
</Button> | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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