Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
b44c7e7d
Commit
b44c7e7d
authored
Feb 15, 2021
by
ianlapham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuke it
parent
333c907e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
110 deletions
+0
-110
main.ts
.storybook/main.ts
+0
-16
preview.tsx
.storybook/preview.tsx
+0
-77
theme.ts
.storybook/theme.ts
+0
-17
No files found.
.storybook/main.ts
deleted
100644 → 0
View file @
333c907e
const
{
dirname
,
join
,
parse
,
resolve
}
=
require
(
'
path
'
)
const
{
existsSync
}
=
require
(
'
fs
'
)
module
.
exports
=
{
stories
:
[
'
../src/**/*.stories.@(ts|tsx)
'
],
addons
:
[
'
@storybook/addon-links
'
,
'
@storybook/addon-essentials
'
,
'
@storybook/preset-create-react-app
'
],
typescript
:
{
check
:
true
,
checkOptions
:
{},
reactDocgen
:
'
react-docgen-typescript
'
,
reactDocgenTypescriptOptions
:
{
shouldExtractLiteralValuesFromEnum
:
true
,
propFilter
:
(
prop
)
=>
(
prop
.
parent
?
!
/node_modules/
.
test
(
prop
.
parent
.
fileName
)
:
true
),
},
},
}
.storybook/preview.tsx
deleted
100644 → 0
View file @
333c907e
import
{
ThemeProvider
as
SCThemeProvider
}
from
'
styled-components
'
import
{
Story
}
from
'
@storybook/react/types-6-0
'
import
React
from
'
react
'
import
{
FixedGlobalStyle
,
theme
,
ThemedGlobalStyle
}
from
'
../src/theme
'
import
*
as
storybookThemes
from
'
./theme
'
export
const
parameters
=
{
actions
:
{
argTypesRegex
:
'
^on[A-Z].*
'
},
dependencies
:
{
withStoriesOnly
:
true
,
hideEmpty
:
true
,
},
docs
:
{
theme
:
storybookThemes
.
light
,
},
viewport
:
{
viewports
:
{
mobile
:
{
name
:
'
iPhone X
'
,
styles
:
{
width
:
'
375px
'
,
height
:
'
812px
'
,
},
},
tablet
:
{
name
:
'
iPad
'
,
styles
:
{
width
:
'
768px
'
,
height
:
'
1024px
'
,
},
},
laptop
:
{
name
:
'
Laptop
'
,
styles
:
{
width
:
'
1024px
'
,
height
:
'
768px
'
,
},
},
desktop
:
{
name
:
'
Desktop
'
,
styles
:
{
width
:
'
1440px
'
,
height
:
'
1024px
'
,
},
},
},
},
}
export
const
globalTypes
=
{
theme
:
{
name
:
'
Theme
'
,
description
:
'
Global theme for components
'
,
defaultValue
:
'
light
'
,
toolbar
:
{
icon
:
'
circlehollow
'
,
items
:
[
'
light
'
,
'
dark
'
],
},
},
}
const
withProviders
=
(
Component
:
Story
,
context
:
Record
<
string
,
any
>
)
=>
{
const
THEME
=
theme
(
context
.
globals
.
theme
===
'
dark
'
)
return
(
<>
<
FixedGlobalStyle
/>
<
SCThemeProvider
theme=
{
THEME
}
>
<
ThemedGlobalStyle
/>
<
main
>
<
Component
/>
</
main
>
</
SCThemeProvider
>
</>
)
}
export
const
decorators
=
[
withProviders
]
.storybook/theme.ts
deleted
100644 → 0
View file @
333c907e
import
{
create
}
from
'
@storybook/theming
'
// this themes the storybook UI
const
uniswapBaseTheme
=
{
brandTitle
:
'
Uniswap Design
'
,
brandUrl
:
'
https://uniswap.org
'
,
brandImage
:
'
https://ipfs.io/ipfs/QmNa8mQkrNKp1WEEeGjFezDmDeodkWRevGFN8JCV7b4Xir
'
,
}
export
const
light
=
create
({
base
:
'
light
'
,
...
uniswapBaseTheme
,
})
// export const dark = create({
// base: 'dark',
// ...uniswapBaseTheme,
// })
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment