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

Update Analog Clock UI #59

Merged
merged 12 commits into from
May 24, 2023
9 changes: 7 additions & 2 deletions examples/simple/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ import './App.css'

const Clock = () => {
return (
<ClockContainer>
<ClockContainer refreshInterval={10}>
<DateContext.Consumer>
{(date: Date) => (
<>
<AnalogClock timezone="Asia/Tokyo" date={date} />
<DigitalClock timezone="Asia/Tokyo" date={date} />
<AnalogClock timezone="America/New_York" date={date} />
<AnalogClock
timezone="America/New_York"
date={date}
step="sweep"
face="roman"
/>
<DigitalClock timezone="America/New_York" date={date} />
</>
)}
Expand Down
8 changes: 4 additions & 4 deletions examples/storybook/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default defineConfig({
// maxDiffPixels: 1,
// },

// toMatchSnapshot: {
// // An acceptable ratio of pixels that are different to the total amount of pixels, between 0 and 1.
// maxDiffPixelRatio: 0.0125,
// },
toMatchSnapshot: {
// An acceptable ratio of pixels that are different to the total amount of pixels, between 0 and 1.
maxDiffPixelRatio: 0.001,
},
},

use: {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading