Skip to content

Commit

Permalink
chore #127: Fix bug - dissapearing svg viewbox property
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-dassana committed Oct 22, 2020
1 parent 347e910 commit ad242cd
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 63 deletions.
5 changes: 5 additions & 0 deletions src/components/Icon/IconsMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { ReactComponent as QUERY_SERVICE } from '../assets/icons/query-service.s
import { ReactComponent as SALESFORCE } from '../assets/icons/salesforce.svg'
import { ReactComponent as ZOOM } from '../assets/icons/zoom.svg'

/*
NOTE: When you add an svg, make sure it doesn't have a predefined height and width. The viewbox property dissapears if you try to set the dimensions outside storybook. https://github.com/gregberge/svgr/issues/500
TODO: Find a better rollup plugin that handles importing images as ReactComponent's.
*/
const Icons = {
appStore: APP_STORE,
aws: AWS,
Expand Down
8 changes: 1 addition & 7 deletions src/components/assets/icons/app-store.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/aws.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/azure.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/dassana.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/google-cloud-platform.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/query-service.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/salesforce.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/components/assets/icons/zoom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad242cd

Please sign in to comment.