pkdotson commented on a change in pull request #11206:
URL:
https://github.com/apache/incubator-superset/pull/11206#discussion_r510459568
##########
File path: superset-frontend/src/views/CRUD/utils.tsx
##########
@@ -63,3 +142,39 @@ export function createErrorHandler(handleErrorFunc:
(errMsg?: string) => void) {
handleErrorFunc(parsedError.message || parsedError.error);
};
}
+
+export function handleDashboardDelete(id: string) {
+ return SupersetClient.delete({
+ endpoint: `/api/v1/dashboard/${id}`,
+ });
+}
+
+const breakpoints = [576, 768, 992, 1200];
+export const mq = breakpoints.map(bp => `@media (max-width: ${bp}px)`);
+
+export const CardContainer = styled.div`
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(31%, max-content));
+ ${[mq[3]]} {
+ grid-template-columns: repeat(auto-fit, minmax(31%, max-content));
+ }
+
+ ${[mq[2]]} {
+ grid-template-columns: repeat(auto-fit, minmax(48%, max-content));
+ }
+
+ ${[mq[1]]} {
+ grid-template-columns: repeat(auto-fit, minmax(50%, max-content));
+ }
+ grid-gap: ${({ theme }) => theme.gridUnit * 8}px;
+ justify-content: left;
+ padding: ${({ theme }) => theme.gridUnit * 2}px
+ ${({ theme }) => theme.gridUnit * 6}px;
+`;
+
+export const IconContainer = styled.div`
+ svg {
+ vertical-align: -7px;
+ color: ${({ theme }) => theme.colors.primary.dark1};
Review comment:
The icon defaults to the whatever the button color is. I think that
makes sense to follow up on this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]