forked from HichemBenChaaben/storybook-addon-linguijs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hichem chaabene
authored and
Hichem chaabene
committed
Jun 3, 2019
1 parent
9c3762b
commit 7cf7f6a
Showing
7 changed files
with
42 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
import { register } from '../dist/'; | ||
|
||
register(); | ||
import "../register"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 @@ | ||
require("./dist").register(); |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { withLingui, setLinguiConfig } from './preview'; | ||
export { register } from './register'; | ||
export { withLingui, setLinguiConfig } from "./preview"; | ||
export { register } from "./manager"; |
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,19 @@ | ||
import React from "react"; | ||
import addons from "@storybook/addons"; | ||
import { ADDON_ID, PANEL_ID } from "../shared"; | ||
import LocalePanel from "../manager/containers/LocalePanel/index"; | ||
|
||
export function register() { | ||
addons.register(ADDON_ID, () => { | ||
addons.addPanel(PANEL_ID, { | ||
title: "Locales", | ||
render: props => ( | ||
<LocalePanel | ||
key={(props && typeof props === "object" && props.key) || undefined} | ||
active={!props || props.active} | ||
channel={addons.getChannel()} | ||
/> | ||
) | ||
}); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.