Skip to content

Commit

Permalink
fix(dev): fix base web links (uber#5178)
Browse files Browse the repository at this point in the history
* fix(dev): fix base web links

Fix base web links updating http://baseui.design -> https://baseweb.design

* fix: add missing close quote

Co-authored-by: Chase Starr <[email protected]>
  • Loading branch information
leyanlo and chasestarr authored Oct 4, 2022
1 parent d3d1367 commit ef9cd57
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 17 deletions.
17 changes: 7 additions & 10 deletions documentation-site/pages/blog/base-web-v7/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Layout from '../../../components/layout';
import {Table} from 'baseui/table';
import {BlogImage, Demo, Meta} from '../../../components/blog';
import { Table } from 'baseui/table';
import { BlogImage, Demo, Meta } from '../../../components/blog';
import metadata from './metadata.json';

export default Layout;
Expand Down Expand Up @@ -63,12 +63,12 @@ type PropsT = {$active: boolean};
### Better type checks

```javascript
type PropsT = {$active: boolean};
type PropsT = { $active: boolean };
const MyStyledComponent =
styled <
PropsT >
('div',
props => {
(props) => {
console.log(props.$notReal); // is now a flow error
return {
backgroundColor: props.$active
Expand Down Expand Up @@ -337,11 +337,11 @@ Removes `StyledRadio` and `StyledRadioMark` overrides and components.

### Migrating the `Radio` component

`StyledRadio`: Update your code to use the `Radio` component instead. See examples at https://baseui.design/components/radio/.
`StyledRadio`: Update your code to use the `Radio` component instead. See examples at https://baseweb.design/components/radio/.

`StyledRadioMark`: Update your code to use the `StyledRadioInner` and `StyledRadioOuter` instead. If you
are using the `StyledRadio` component, replace that with the `Radio` component and this warning
should go away. See examples at https://baseui.design/components/radio/.
should go away. See examples at https://baseweb.design/components/radio/.

```diff
<Radio
Expand Down Expand Up @@ -467,10 +467,7 @@ Here is a mapping of which components each theme variable affects:
<Table
columns={['Variable', 'Components']}
data={[
[
'useRoundedCorners',
'Checkbox, Datepicker (Range), Progress Bar, Slider, Tag',
],
['useRoundedCorners', 'Checkbox, Datepicker (Range), Progress Bar, Slider, Tag'],
['buttonBorderRadius', 'Button, ButtonGroup'],
['inputBorderRadius', 'Input, Select, Textarea'],
['popoverBorderRadius', 'Popover, Menu, Tooltip'],
Expand Down
2 changes: 1 addition & 1 deletion src/layer/tether.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Tether extends React.Component<TetherPropsT, TetherStateT> {
console.warn(
`[baseui][TetherBehavior] ref has not been passed to the Popper's anchor element.
See how to pass the ref to an anchor element in the Popover example
http://baseui.design/components/popover#anchor-ref-handling-example`
https://baseweb.design/components/popover/#anchor-ref-handling-example`
);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/layer/tether.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Tether extends React.Component<TetherProps, TetherState> {
console.warn(
`[baseui][TetherBehavior] ref has not been passed to the Popper's anchor element.
See how to pass the ref to an anchor element in the Popover example
http://baseui.design/components/popover#anchor-ref-handling-example`
https://baseweb.design/components/popover/#anchor-ref-handling-example`
);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/popover/popover.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PopoverInner extends React.Component<PopoverPropsT, PopoverPrivateStateT>
console.warn(
`[baseui][Popover] ref has not been passed to the Popper's anchor element.
See how to pass the ref to an anchor element in the Popover example
http://baseui.design/components/popover#anchor-ref-handling-example`
https://baseweb.design/components/popover/#anchor-ref-handling-example`
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PopoverInner extends React.Component<PopoverProps, PopoverPrivateState> {
console.warn(
`[baseui][Popover] ref has not been passed to the Popper's anchor element.
See how to pass the ref to an anchor element in the Popover example
http://baseui.design/components/popover#anchor-ref-handling-example`
https://baseweb.design/components/popover/#anchor-ref-handling-example`
);
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/select/__tests__/select-disable-href-anchor.scenario.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export function Scenario() {
<StatefulSelect
startOpen
options={[
{ id: 'a', label: 'hey!', href: 'https://baseui.design' },
{ id: 'b', label: 'are you listening?', href: 'https://baseui.design' },
{ id: 'c', label: 'look at me!', href: 'https://baseui.design' },
{ id: 'a', label: 'hey!', href: 'https://baseweb.design' },
{ id: 'b', label: 'are you listening?', href: 'https://baseweb.design' },
{ id: 'c', label: 'look at me!', href: 'https://baseweb.design' },
]}
/>
);
Expand Down

0 comments on commit ef9cd57

Please sign in to comment.