Skip to content

Commit

Permalink
refactor: moves widget util to shared folder (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
shootermv authored Nov 27, 2023
1 parent 7d0f9fd commit ddc150b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// import hebbo:
@import 'https://fonts.googleapis.com/css?family=Heebo:400,500,700&display=swap';
@import './resources/variables.scss';
@import './shared/shared.css';

.main {
flex-direction: row;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/components/Widget.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react'
import { BusToolTip } from './MapLayers/BusToolTip'
import '../dashboard/DashboardPage.scss'
import '../../shared/shared.css'
const meta = {
title: 'Components/Widget',
component: () => (
Expand Down
6 changes: 0 additions & 6 deletions src/pages/dashboard/DashboardPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
}

.widget {
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 20px;
box-sizing: border-box;
margin-bottom: 20px;
background-color: white;

.chart {
height: 400px;
Expand Down
8 changes: 8 additions & 0 deletions src/shared/shared.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.widget {
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 20px;
box-sizing: border-box;
margin-bottom: 20px;
background-color: white;
}

0 comments on commit ddc150b

Please sign in to comment.