Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tile): refactor to functional component #9721

Merged
merged 31 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
af055e0
chore(tile): refactor to functional component
sstrubberg Sep 22, 2021
0db8a40
Merge branch 'main' into tile-functional
sstrubberg Sep 22, 2021
c2d8cb3
fix(tile): build errors
sstrubberg Sep 22, 2021
58b9656
fix(tile): working with storybook
sstrubberg Sep 22, 2021
4c408cc
Merge branch 'main' into tile-functional
sstrubberg Sep 22, 2021
409b118
fix(tile): added prefixes
sstrubberg Sep 23, 2021
ab8ac3c
Merge branch 'main' into tile-functional
sstrubberg Sep 23, 2021
dff1f46
feat(tile): refactoring-feature-flags
sstrubberg Sep 27, 2021
524bb04
feat(tile): removed custom styling
sstrubberg Sep 28, 2021
e17679b
Merge branch 'main' into tile-functional
sstrubberg Sep 28, 2021
def85a2
Update packages/react/.storybook/preview.js
sstrubberg Sep 28, 2021
8685e98
Update packages/react/src/components/Tile/next/Tile.js
sstrubberg Sep 28, 2021
2ff661f
Update packages/react/src/components/Tile/next/Tile.js
sstrubberg Sep 28, 2021
3dfa878
Update packages/react/src/components/Tile/next/Tile.js
sstrubberg Sep 28, 2021
a8a0e02
Update packages/react/src/components/Tile/next/Tile.js
sstrubberg Sep 28, 2021
9e16023
Update packages/react/src/components/Tile/next/Tile.js
sstrubberg Sep 28, 2021
eab1625
fix(tile): removed useEffect hook
sstrubberg Sep 28, 2021
22cebfe
fix(tile): alphabetized things
sstrubberg Sep 28, 2021
ee8bbf9
Merge branch 'main' into tile-functional
sstrubberg Sep 28, 2021
1330c62
fix(tile): syntax
sstrubberg Sep 28, 2021
33f21fa
Merge branch 'main' into tile-functional
sstrubberg Oct 6, 2021
a287b5e
fix(Tile): added deprecation warning for the light prop
sstrubberg Oct 6, 2021
cf8fab6
feat(tile): added tests
sstrubberg Oct 6, 2021
ff26e29
Merge branch 'main' into tile-functional
sstrubberg Oct 7, 2021
cd5808d
feat(tile): added rtl
sstrubberg Oct 7, 2021
9ae08ae
feat(tile): removed debug
sstrubberg Oct 7, 2021
c90616e
feat(tile): hammering on testing
sstrubberg Oct 12, 2021
9422434
feat(tile): added more tests
sstrubberg Oct 12, 2021
142cb36
Merge branch 'main' into tile-functional
sstrubberg Oct 12, 2021
b12920c
feat(tile): hammering on tests
sstrubberg Oct 12, 2021
51b9b78
feat(tile): fixed an aria-label
sstrubberg Oct 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion packages/react/src/components/Tile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,45 @@
* LICENSE file in the root directory of this source tree.
*/

export * from './Tile';
import * as FeatureFlags from '@carbon/feature-flags';
import {
Tile as TileNext,
ClickableTile as ClickableTileNext,
SelectableTile as SelectableTileNext,
TileAboveTheFoldContent as TileAboveTheFoldContentNext,
TileBelowTheFoldContent as TileBelowTheFoldContentNext,
} from './next/Tile';
import {
Tile as TileClassic,
ClickableTile as ClickableTileClassic,
SelectableTile as SelectableTileClassic,
ExpandableTile,
TileAboveTheFoldContent as TileAboveTheFoldContentClassic,
TileBelowTheFoldContent as TileBelowTheFoldContentClassic,
} from './Tile';

export const Tile = FeatureFlags.enabled('enable-v11-release')
? TileNext
: TileClassic;

export const ClickableTile = FeatureFlags.enabled('enable-v11-release')
? ClickableTileNext
: ClickableTileClassic;

export const SelectableTile = FeatureFlags.enabled('enable-v11-release')
? SelectableTileNext
: SelectableTileClassic;

export { ExpandableTile };

export const TileAboveTheFoldContent = FeatureFlags.enabled(
'enable-v11-release'
)
? TileAboveTheFoldContentNext
: TileAboveTheFoldContentClassic;

export const TileBelowTheFoldContent = FeatureFlags.enabled(
'enable-v11-release'
)
? TileBelowTheFoldContentNext
: TileBelowTheFoldContentClassic;
Loading