-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move styles to a separate file
- Loading branch information
1 parent
6424e5d
commit 89a5f23
Showing
4 changed files
with
62 additions
and
57 deletions.
There are no files selected for viewing
57 changes: 0 additions & 57 deletions
57
app/client/src/PluginActionEditor/components/PluginActionResponse/components/NoResponse.tsx
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
...c/PluginActionEditor/components/PluginActionResponse/components/NoResponse/NoResponse.tsx
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,34 @@ | ||
import React from "react"; | ||
|
||
import { Button } from "@appsmith/ads"; | ||
import NoResponseSVG from "assets/images/no-response.svg"; | ||
import { EMPTY_RESPONSE_RUN } from "ee/constants/messages"; | ||
|
||
import * as Styled from "./styles"; | ||
|
||
interface NoResponseProps { | ||
isRunDisabled: boolean; | ||
isRunning: boolean; | ||
onRunClick: () => void; | ||
} | ||
|
||
export const NoResponse = ({ | ||
isRunDisabled, | ||
isRunning, | ||
onRunClick, | ||
}: NoResponseProps) => ( | ||
<Styled.Container> | ||
<img alt="no-response-yet" src={NoResponseSVG} /> | ||
<Styled.RunGroup> | ||
<Styled.Text>{EMPTY_RESPONSE_RUN()}</Styled.Text> | ||
<Button | ||
isDisabled={isRunDisabled} | ||
isLoading={isRunning} | ||
onClick={onRunClick} | ||
size="sm" | ||
> | ||
Run | ||
</Button> | ||
</Styled.RunGroup> | ||
</Styled.Container> | ||
); |
1 change: 1 addition & 0 deletions
1
...ent/src/PluginActionEditor/components/PluginActionResponse/components/NoResponse/index.ts
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 @@ | ||
export { NoResponse } from "./NoResponse"; |
27 changes: 27 additions & 0 deletions
27
...nt/src/PluginActionEditor/components/PluginActionResponse/components/NoResponse/styles.ts
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,27 @@ | ||
import styled from "styled-components"; | ||
import { Text as AdsText } from "@appsmith/ads"; | ||
|
||
import { TAB_BAR_HEIGHT } from "../constants"; | ||
|
||
export const Text = styled(AdsText)` | ||
&&&& { | ||
margin-top: 0; | ||
} | ||
`; | ||
|
||
export const Container = styled.div` | ||
width: 100%; | ||
height: calc(100% - ${TAB_BAR_HEIGHT}px); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
gap: 24px; | ||
`; | ||
|
||
export const RunGroup = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 16px; | ||
`; |